Move wp_plupload_default_settings() to the admin_enqueue_scripts hook to prevent fatal errors when admin_init is run outside of normal admin-header execution, like admin-ajax. see #19910. fixes #20240.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20189 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
4bd9f4f9f2
commit
ae6bf5bd80
|
@ -1483,4 +1483,4 @@ function wp_plupload_default_settings() {
|
|||
|
||||
$wp_scripts->add_data( 'wp-plupload', 'data', $script );
|
||||
}
|
||||
add_action( 'admin_init', 'wp_plupload_default_settings' );
|
||||
add_action( 'admin_enqueue_scripts', 'wp_plupload_default_settings' );
|
||||
|
|
Loading…
Reference in New Issue