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: https://develop.svn.wordpress.org/trunk@20189 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
763e26aa32
commit
c5ebfc0584
@ -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
Block a user