wordpress-owncloud-integration icon indicating copy to clipboard operation
wordpress-owncloud-integration copied to clipboard

admin_enqueue_scripts breaks entire wp-admin javascript

Open d-boyadzhiev opened this issue 5 years ago • 0 comments

With the current version of the plugin wp-admin javascript is broken because of dequeuing jQuery globally in the constructor. add_action( 'admin_enqueue_scripts', array( $this, 'page_enqueue' )); This should be done in public function create_admin_page(), before checking post request. Otherwise, jQuery becomes unavailable in other scripts in wp-admin:

Uncaught ReferenceError: jQuery is not defined at load-scripts.php?c=0&load[]=utils,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable,moxiejs,plupload&ver=4.9.9:12

Current env: ownCloud 10.0.10 (stable) WordPress 4.9.9

d-boyadzhiev avatar Jan 04 '19 15:01 d-boyadzhiev