Fix action handling code, see #17136
git-svn-id: https://develop.svn.wordpress.org/trunk@17786 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
6e8cefd437
commit
4e6c7c2281
@ -1693,7 +1693,7 @@ do_action('after_wp_tiny_mce', $initArray);
|
||||
|
||||
// Load additional inline scripts based on active plugins.
|
||||
function wp_preload_dialogs($init) {
|
||||
$plugins = (array) $init['plugins'];
|
||||
$plugins = preg_split('/[ ,-]+/', $init['plugins']);
|
||||
|
||||
if ( in_array( 'wpdialogs', $plugins, true ) ) {
|
||||
wp_print_scripts('wpdialogs-popup');
|
||||
@ -1717,7 +1717,7 @@ function wp_preload_dialogs($init) {
|
||||
}
|
||||
|
||||
function wp_quicktags() {
|
||||
wp_preload_dialogs( array( 'plugins' => array( 'wpdialogs', 'wplink', 'wpfullscreen' ) ) );
|
||||
wp_preload_dialogs( array( 'plugins' => 'wpdialogs,wplink,wpfullscreen' ) );
|
||||
}
|
||||
|
||||
function wp_print_editor_js() {
|
||||
|
Loading…
Reference in New Issue
Block a user