WordPress.org

Make WordPress Core

Ticket #30569: 30569.diff

File 30569.diff, 7.6 KB (added by DrewAPicture, 6 years ago)
  • src/wp-admin/css/nav-menus.css

     
    527527        margin-top: 13px;
    528528}
    529529
    530 /* WARNING: The factor of 30px is hardcoded into the nav-menus javascript. */
     530/* WARNING: The factor of 30px is hardcoded into the nav-menus JavaScript. */
    531531.menu-item-depth-0 { margin-left: 0px; }
    532532.menu-item-depth-1 { margin-left: 30px; }
    533533.menu-item-depth-2 { margin-left: 60px; }
  • src/wp-admin/custom-header.php

     
    362362        }
    363363
    364364        /**
    365          * Execute Javascript depending on step.
     365         * Execute JavaScript depending on step.
    366366         *
    367367         * @since 2.1.0
    368368         */
     
    375375        }
    376376
    377377        /**
    378          * Display Javascript based on Step 1 and 3.
     378         * Display JavaScript based on Step 1 and 3.
    379379         *
    380380         * @since 2.6.0
    381381         */
     
    439439        }
    440440
    441441        /**
    442          * Display Javascript based on Step 2.
     442         * Display JavaScript based on Step 2.
    443443         *
    444444         * @since 2.6.0
    445445         */
  • src/wp-admin/customize.php

     
    232232                'customize-login' => 1
    233233        ), wp_login_url() );
    234234
    235         // Prepare Customizer settings to pass to Javascript.
     235        // Prepare Customizer settings to pass to JavaScript.
    236236        $settings = array(
    237237                'theme'    => array(
    238238                        'stylesheet' => $wp_customize->get_stylesheet(),
     
    265265                'documentTitleTmpl' => $document_title_tmpl,
    266266        );
    267267
    268         // Prepare Customize Setting objects to pass to Javascript.
     268        // Prepare Customize Setting objects to pass to JavaScript.
    269269        foreach ( $wp_customize->settings() as $id => $setting ) {
    270270                $settings['settings'][ $id ] = array(
    271271                        'value'     => $setting->js_value(),
  • src/wp-admin/includes/deprecated.php

     
    208208}
    209209
    210210/**
    211  * Adds Javascript required to make CodePress work on the theme/plugin editors.
     211 * Adds JavaScript required to make CodePress work on the theme/plugin editors.
    212212 *
    213213 * @since 2.8.0
    214214 * @deprecated 3.0.0
  • src/wp-admin/includes/revision.php

     
    282282}
    283283
    284284/**
    285  * Print Javascript templates required for the revisions experience.
     285 * Print JavaScript templates required for the revisions experience.
    286286 *
    287287 * @since 4.1.0
    288288 *
  • src/wp-admin/includes/template.php

     
    16081608function iframe_footer() {
    16091609        /*
    16101610         * We're going to hide any footer output on iFrame pages,
    1611          * but run the hooks anyway since they output Javascript
     1611         * but run the hooks anyway since they output JavaScript
    16121612         * or other needed content.
    16131613         */
    16141614         ?>
     
    19491949        }
    19501950
    19511951        /**
    1952          * Print the pointer javascript data.
     1952         * Print the pointer JavaScript data.
    19531953         *
    19541954         * @since 3.3.0
    19551955         *
  • src/wp-includes/class-wp-customize-manager.php

     
    419419        }
    420420
    421421        /**
    422          * Print javascript settings.
     422         * Print JavaScript settings.
    423423         *
    424424         * @since 3.4.0
    425425         */
     
    492492        }
    493493
    494494        /**
    495          * Print javascript settings for preview frame.
     495         * Print JavaScript settings for preview frame.
    496496         *
    497497         * @since 3.4.0
    498498         */
  • src/wp-includes/class-wp-customize-widgets.php

     
    10411041         */
    10421042        public function export_preview_data() {
    10431043
    1044                 // Prepare Customizer settings to pass to Javascript.
     1044                // Prepare Customizer settings to pass to JavaScript.
    10451045                $settings = array(
    10461046                        'renderedSidebars'   => array_fill_keys( array_unique( $this->rendered_sidebars ), true ),
    10471047                        'renderedWidgets'    => array_fill_keys( array_keys( $this->rendered_widgets ), true ),
  • src/wp-includes/class-wp-editor.php

     
    759759         * Can be used directly (_WP_Editors::wp_mce_translation()) by passing the same locale as set in the TinyMCE init object.
    760760         *
    761761         * @param string $mce_locale The locale used for the editor.
    762          * @param bool $json_only optional Whether to include the Javascript calls to tinymce.addI18n() and tinymce.ScriptLoader.markDone().
     762         * @param bool $json_only optional Whether to include the JavaScript calls to tinymce.addI18n() and tinymce.ScriptLoader.markDone().
    763763         * @return string Translation object, JSON encoded.
    764764         */
    765765        public static function wp_mce_translation( $mce_locale = '', $json_only = false ) {
  • src/wp-includes/comment-template.php

     
    16101610/**
    16111611 * Display text based on comment reply status.
    16121612 *
    1613  * Only affects users with Javascript disabled.
     1613 * Only affects users with JavaScript disabled.
    16141614 *
    16151615 * @since 2.7.0
    16161616 *
  • src/wp-includes/deprecated.php

     
    25012501}
    25022502
    25032503/**
    2504  * Fixes javascript bugs in browsers.
     2504 * Fixes JavaScript bugs in browsers.
    25052505 *
    25062506 * Converts unicode characters to HTML numbered entities.
    25072507 *
     
    25152515 */
    25162516function funky_javascript_fix($text) {
    25172517        _deprecated_function( __FUNCTION__, '3.0' );
    2518         // Fixes for browsers' javascript bugs
     2518        // Fixes for browsers' JavaScript bugs.
    25192519        global $is_macIE, $is_winIE;
    25202520
    25212521        if ( $is_winIE || $is_macIE )
  • src/wp-includes/js/shortcode.js

     
    1 // Utility functions for parsing and handling shortcodes in Javascript.
     1// Utility functions for parsing and handling shortcodes in JavaScript.
    22
    33// Ensure the global `wp` object exists.
    44window.wp = window.wp || {};
  • src/wp-includes/post-template.php

     
    290290                }
    291291        }
    292292
    293         if ( $preview ) // preview fix for javascript bug with foreign languages
     293        if ( $preview ) // Preview fix for JavaScript bug with foreign languages.
    294294                $output =       preg_replace_callback( '/\%u([0-9A-F]{4})/', '_convert_urlencoded_to_entities', $output );
    295295
    296296        return $output;
    297297}
    298298
    299299/**
    300  * Preview fix for javascript bug with foreign languages
     300 * Preview fix for JavaScript bug with foreign languages.
    301301 *
    302302 * @since 3.1.0
    303303 * @access private