wordpress-owncloud-integration
wordpress-owncloud-integration copied to clipboard
admin_enqueue_scripts breaks entire wp-admin javascript
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