WordPress.org

Make WordPress Core

Changeset 20189


Ignore:
Timestamp:
03/15/2012 12:53:39 PM (7 years ago)
Author:
nacin
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/media.php

    r20188 r20189  
    14841484    $wp_scripts->add_data( 'wp-plupload', 'data', $script );
    14851485}
    1486 add_action( 'admin_init', 'wp_plupload_default_settings' );
     1486add_action( 'admin_enqueue_scripts', 'wp_plupload_default_settings' );
Note: See TracChangeset for help on using the changeset viewer.