WordPress.org

Make WordPress Core

Changeset 28024


Ignore:
Timestamp:
04/07/2014 10:54:13 PM (4 years ago)
Author:
azaozz
Message:

Fix typo and add more text to the error shown when 'wpdialogs' is not enqueued. Add 'wp_enqueue_editor' action fired when scripts and styles for the editor are being enqueued, fixes #16284

Location:
trunk/src/wp-includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-editor.php

    r27978 r28024  
    734734            wp_enqueue_script('media-upload');
    735735        }
     736
     737        /**
     738         * Fires when scripts and styles are enqueued for the editor
     739         *
     740         * @since 3.9.0
     741         *
     742         * @param array An array containing boolean values whether TinyMCE and Quicktags are being loaded.
     743         */
     744        do_action( 'wp_enqueue_editor', array( 'tinymce' => self::$has_tinymce, 'quicktags' => self::$has_quicktags ) );
    736745    }
    737746
  • trunk/src/wp-includes/js/tinymce/plugins/wpdialogs/plugin.js

    r28012 r28024  
    3131
    3232        if ( typeof jQuery === 'undefined' || ! jQuery.wp || ! jQuery.wp.wpdialog ) {
    33             // wpdialod.js is not loaded
     33            // wpdialog.js is not loaded
    3434            if ( window.console && window.console.error ) {
    35                 window.console.error('wpdialog.js is not loaded. Please set it as dependency for your script when calling wp_enqueue_script().');
     35                window.console.error("wpdialog.js is not loaded. Please set 'wpdialogs' as dependency for your script when calling wp_enqueue_script(). You may also want to enqueue the 'wp-jquery-ui-dialog' stylesheet.");
    3636            }
    3737
Note: See TracChangeset for help on using the changeset viewer.