WordPress.org

Make WordPress Core

Ticket #16284: 16284.2.patch

File 16284.2.patch, 1.3 KB (added by azaozz, 6 years ago)
  • src/wp-includes/class-wp-editor.php

     
    733733                        add_thickbox();
    734734                        wp_enqueue_script('media-upload');
    735735                }
     736
     737                do_action( 'wp_enqueue_editor', array( 'has_tinymce' => self::$has_tinymce, 'has_quicktags' => self::$has_quicktags ) );
    736738        }
    737739
    738740        public static function wp_mce_translation() {
  • src/wp-includes/js/tinymce/plugins/wpdialogs/plugin.js

     
    3030                }
    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
    3838                        return;