Make WordPress Core

Changeset 17786


Ignore:
Timestamp:
05/02/2011 08:28:58 AM (14 years ago)
Author:
azaozz
Message:

Fix action handling code, see #17136

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/post.php

    r17785 r17786  
    16941694// Load additional inline scripts based on active plugins.
    16951695function wp_preload_dialogs($init) {
    1696     $plugins = (array) $init['plugins'];
     1696    $plugins = preg_split('/[ ,-]+/', $init['plugins']);
    16971697
    16981698    if ( in_array( 'wpdialogs', $plugins, true ) ) {
     
    17181718
    17191719function wp_quicktags() {
    1720     wp_preload_dialogs( array( 'plugins' => array( 'wpdialogs', 'wplink', 'wpfullscreen' ) ) );
     1720    wp_preload_dialogs( array( 'plugins' => 'wpdialogs,wplink,wpfullscreen' ) );
    17211721}
    17221722
Note: See TracChangeset for help on using the changeset viewer.