Make WordPress Core

Ticket #34887: 34887.3.diff

File 34887.3.diff, 40.5 KB (added by thewanderingbrit, 9 years ago)
  • src/wp-admin/admin-ajax.php

    diff --git a/src/wp-admin/admin-ajax.php b/src/wp-admin/admin-ajax.php
    index 5597aec..f3a816a 100644
    a b  
    2121/** Load WordPress Bootstrap */
    2222require_once( dirname( dirname( __FILE__ ) ) . '/wp-load.php' );
    2323
    24 /** Allow for cross-domain requests (from the frontend). */
     24/** Allow for cross-domain requests (from the front end). */
    2525send_origin_headers();
    2626
    2727// Require an action parameter
  • src/wp-admin/admin-post.php

    diff --git a/src/wp-admin/admin-post.php b/src/wp-admin/admin-post.php
    index cb92699..d3135f2 100644
    a b  
    1818else
    1919        require_once( dirname( dirname( __FILE__ ) ) . '/wp-load.php' );
    2020
    21 /** Allow for cross-domain requests (from the frontend). */
     21/** Allow for cross-domain requests (from the front end). */
    2222send_origin_headers();
    2323
    2424require_once(ABSPATH . 'wp-admin/includes/admin.php');
  • src/wp-admin/admin.php

    diff --git a/src/wp-admin/admin.php b/src/wp-admin/admin.php
    index 2d08092..6720acb 100644
    a b  
    146146         * handled separately.
    147147         *
    148148         * The WP_MAX_MEMORY_LIMIT constant specifically defines the maximum memory limit available
    149          * when in the administration back-end. The default is 256M, or 256 megabytes of memory.
     149         * when in the administration back end. The default is 256M, or 256 megabytes of memory.
    150150         *
    151151         * @since 3.0.0
    152152         *
  • src/wp-admin/includes/class-wp-theme-install-list-table.php

    diff --git a/src/wp-admin/includes/class-wp-theme-install-list-table.php b/src/wp-admin/includes/class-wp-theme-install-list-table.php
    index c2b0b6d..cfbd85d 100644
    a b public function display_rows() { 
    241241         *     public 'rating' => float 80
    242242         *     public 'num_ratings' => int 1
    243243         *     public 'homepage' => string 'http://wordpress.org/themes/magazine-basic'
    244          *     public 'description' => string 'A basic magazine style layout with a fully customizable layout through a backend interface. Designed by <a href="http://bavotasan.com">c.bavota</a> of <a href="http://tinkerpriestmedia.com">Tinker Priest Media</a>.'
     244         *     public 'description' => string 'A basic magazine style layout with a fully customizable layout through a back end interface. Designed by <a href="http://bavotasan.com">c.bavota</a> of <a href="http://tinkerpriestmedia.com">Tinker Priest Media</a>.'
    245245         *     public 'download_link' => string 'http://wordpress.org/themes/download/magazine-basic.1.1.zip'
    246246         */
    247247        public function single_row( $theme ) {
  • src/wp-admin/includes/update-core.php

    diff --git a/src/wp-admin/includes/update-core.php b/src/wp-admin/includes/update-core.php
    index 4408376..ed9b5ef 100644
    a b function update_core($from, $to) { 
    10951095
    10961096        // Clear the cache to prevent an update_option() from saving a stale db_version to the cache
    10971097        wp_cache_flush();
    1098         // (Not all cache backends listen to 'flush')
     1098        // (Not all cache back ends listen to 'flush')
    10991099        wp_cache_delete( 'alloptions', 'options' );
    11001100
    11011101        // Remove working directory
  • src/wp-admin/js/customize-controls.js

    diff --git a/src/wp-admin/js/customize-controls.js b/src/wp-admin/js/customize-controls.js
    index e78d2c9..84864de 100644
    a b  
    15501550                        // Watch for changes to the section state
    15511551                        inject = function ( sectionId ) {
    15521552                                var parentContainer;
    1553                                 if ( ! sectionId ) { // @todo allow a control to be embedded without a section, for instance a control embedded in the frontend
     1553                                if ( ! sectionId ) { // @todo allow a control to be embedded without a section, for instance a control embedded in the front end
    15541554                                        return;
    15551555                                }
    15561556                                // Wait for the section to be registered
     
    29932993                                return match ? match[0] : '';
    29942994                        });
    29952995
    2996                         // Limit the URL to internal, front-end links.
     2996                        // Limit the URL to internal, front end links.
    29972997                        //
    2998                         // If the frontend and the admin are served from the same domain, load the
     2998                        // If the front end and the admin are served from the same domain, load the
    29992999                        // preview over ssl if the Customizer is being loaded over ssl. This avoids
    3000                         // insecure content warnings. This is not attempted if the admin and frontend
    3001                         // are on different domains to avoid the case where the frontend doesn't have
     3000                        // insecure content warnings. This is not attempted if the admin and front end
     3001                        // are on different domains to avoid the case where the front end doesn't have
    30023002                        // ssl certs.
    30033003
    30043004                        this.add( 'previewUrl', params.previewUrl ).setter( function( to ) {
  • src/wp-admin/js/revisions.js

    diff --git a/src/wp-admin/js/revisions.js b/src/wp-admin/js/revisions.js
    index 1d7437c..5d3fe90 100644
    a b window.wp = window.wp || {}; 
    1414         */
    1515        revisions = wp.revisions = { model: {}, view: {}, controller: {} };
    1616
    17         // Link post revisions data served from the back-end.
     17        // Link post revisions data served from the back end.
    1818        revisions.settings = window._wpRevisionsSettings || {};
    1919
    2020        // For debugging
  • src/wp-admin/my-sites.php

    diff --git a/src/wp-admin/my-sites.php b/src/wp-admin/my-sites.php
    index 8970c9f..efefb44 100644
    a b  
    3939        'id'      => 'overview',
    4040        'title'   => __('Overview'),
    4141        'content' =>
    42                 '<p>' . __('This screen shows an individual user all of their sites in this network, and also allows that user to set a primary site. They can use the links under each site to visit either the frontend or the dashboard for that site.') . '</p>' .
     42                '<p>' . __('This screen shows an individual user all of their sites in this network, and also allows that user to set a primary site. They can use the links under each site to visit either the front end or the dashboard for that site.') . '</p>' .
    4343                '<p>' . __('Up until WordPress version 3.0, what is now called a Multisite Network had to be installed separately as WordPress MU (multi-user).') . '</p>'
    4444) );
    4545
  • src/wp-admin/network/sites.php

    diff --git a/src/wp-admin/network/sites.php b/src/wp-admin/network/sites.php
    index a0b699f..79e1dea 100644
    a b  
    3535                '<li>' . __('Dashboard leads to the Dashboard for that site.') . '</li>' .
    3636                '<li>' . __('Deactivate, Archive, and Spam which lead to confirmation screens. These actions can be reversed later.') . '</li>' .
    3737                '<li>' . __('Delete which is a permanent action after the confirmation screens.') . '</li>' .
    38                 '<li>' . __('Visit to go to the frontend site live.') . '</li></ul>' .
     38                '<li>' . __('Visit to go to the front end site live.') . '</li></ul>' .
    3939                '<p>' . __('The site ID is used internally, and is not shown on the front end of the site or to users/viewers.') . '</p>' .
    4040                '<p>' . __('Clicking on bold headings can re-sort this table.') . '</p>'
    4141) );
  • src/wp-content/themes/twentyfifteen/inc/custom-header.php

    diff --git a/src/wp-content/themes/twentyfifteen/inc/custom-header.php b/src/wp-content/themes/twentyfifteen/inc/custom-header.php
    index 10d0ef1..b32a163 100644
    a b function twentyfifteen_header_style() { 
    186186endif; // twentyfifteen_header_style
    187187
    188188/**
    189  * Enqueues front-end CSS for the header background color.
     189 * Enqueues front end CSS for the header background color.
    190190 *
    191191 * @since Twenty Fifteen 1.0
    192192 *
    function twentyfifteen_header_background_color_css() { 
    232232add_action( 'wp_enqueue_scripts', 'twentyfifteen_header_background_color_css', 11 );
    233233
    234234/**
    235  * Enqueues front-end CSS for the sidebar text color.
     235 * Enqueues front end CSS for the sidebar text color.
    236236 *
    237237 * @since Twenty Fifteen 1.0
    238238 */
  • src/wp-content/themes/twentyfifteen/inc/customizer.php

    diff --git a/src/wp-content/themes/twentyfifteen/inc/customizer.php b/src/wp-content/themes/twentyfifteen/inc/customizer.php
    index 93b66e5..17ed422 100644
    a b function twentyfifteen_sanitize_color_scheme( $value ) { 
    239239endif; // twentyfifteen_sanitize_color_scheme
    240240
    241241/**
    242  * Enqueues front-end CSS for color scheme.
     242 * Enqueues front end CSS for color scheme.
    243243 *
    244244 * @since Twenty Fifteen 1.0
    245245 *
  • src/wp-content/themes/twentyfourteen/inc/featured-content.php

    diff --git a/src/wp-content/themes/twentyfourteen/inc/featured-content.php b/src/wp-content/themes/twentyfourteen/inc/featured-content.php
    index 5b64910..ffeb993 100644
    a b  
    88 * For maximum compatibility with different methods of posting users
    99 * will designate a featured post tag to associate posts with. Since
    1010 * this tag now has special meaning beyond that of a normal tags, users
    11  * will have the ability to hide it from the front-end of their site.
     11 * will have the ability to hide it from the front end of their site.
    1212 */
    1313class Featured_Content {
    1414
    public static function init() { 
    9595        }
    9696
    9797        /**
    98          * Hide "featured" tag from the front-end.
     98         * Hide "featured" tag from the front end.
    9999         *
    100100         * Has to run on wp_loaded so that the preview filters of the Customizer
    101101         * have a chance to alter the value.
    public static function delete_post_tag( $tag_id ) { 
    288288        }
    289289
    290290        /**
    291          * Hide featured tag from displaying when global terms are queried from the front-end.
     291         * Hide featured tag from displaying when global terms are queried from the front end.
    292292         *
    293293         * Hooks into the "get_terms" filter.
    294294         *
    public static function delete_post_tag( $tag_id ) { 
    304304         */
    305305        public static function hide_featured_term( $terms, $taxonomies, $args ) {
    306306
    307                 // This filter is only appropriate on the front-end.
     307                // This filter is only appropriate on the front end.
    308308                if ( is_admin() ) {
    309309                        return $terms;
    310310                }
    public static function hide_featured_term( $terms, $taxonomies, $args ) { 
    336336
    337337        /**
    338338         * Hide featured tag from display when terms associated with a post object
    339          * are queried from the front-end.
     339         * are queried from the front end.
    340340         *
    341341         * Hooks into the "get_the_terms" filter.
    342342         *
    public static function hide_featured_term( $terms, $taxonomies, $args ) { 
    353353         */
    354354        public static function hide_the_featured_term( $terms, $id, $taxonomy ) {
    355355
    356                 // This filter is only appropriate on the front-end.
     356                // This filter is only appropriate on the front end.
    357357                if ( is_admin() ) {
    358358                        return $terms;
    359359                }
  • src/wp-content/themes/twentythirteen/inc/custom-header.php

    diff --git a/src/wp-content/themes/twentythirteen/inc/custom-header.php b/src/wp-content/themes/twentythirteen/inc/custom-header.php
    index 6a9a6ad..9e40bfe 100644
    a b  
    1313 * Set up the WordPress core custom header arguments and settings.
    1414 *
    1515 * @uses add_theme_support() to register support for 3.4 and up.
    16  * @uses twentythirteen_header_style() to style front-end.
     16 * @uses twentythirteen_header_style() to style front end.
    1717 * @uses twentythirteen_admin_header_style() to style wp-admin form.
    1818 * @uses twentythirteen_admin_header_image() to add custom markup to wp-admin form.
    1919 * @uses register_default_headers() to set up the bundled header images.
  • src/wp-content/themes/twentytwelve/functions.php

    diff --git a/src/wp-content/themes/twentytwelve/functions.php b/src/wp-content/themes/twentytwelve/functions.php
    index 8d5facf..ef933e5 100644
    a b function twentytwelve_get_font_url() { 
    124124}
    125125
    126126/**
    127  * Enqueue scripts and styles for front-end.
     127 * Enqueue scripts and styles for front end.
    128128 *
    129129 * @since Twenty Twelve 1.0
    130130 */
  • src/wp-content/themes/twentytwelve/inc/custom-header.php

    diff --git a/src/wp-content/themes/twentytwelve/inc/custom-header.php b/src/wp-content/themes/twentytwelve/inc/custom-header.php
    index 2a886bd..baedf18 100644
    a b  
    1313 * Set up the WordPress core custom header arguments and settings.
    1414 *
    1515 * @uses add_theme_support() to register support for 3.4 and up.
    16  * @uses twentytwelve_header_style() to style front-end.
     16 * @uses twentytwelve_header_style() to style front end.
    1717 * @uses twentytwelve_admin_header_style() to style wp-admin form.
    1818 * @uses twentytwelve_admin_header_image() to add custom markup to wp-admin form.
    1919 *
  • src/wp-includes/cache.php

    diff --git a/src/wp-includes/cache.php b/src/wp-includes/cache.php
    index aea9c13..181ac5a 100644
    a b function wp_cache_add_non_persistent_groups( $groups ) { 
    247247/**
    248248 * Reset internal cache keys and structures.
    249249 *
    250  * If the cache backend uses global blog or site IDs as part of its cache keys,
    251  * this function instructs the backend to reset those keys and perform any cleanup
     250 * If the cache back end uses global blog or site IDs as part of its cache keys,
     251 * this function instructs the back end to reset those keys and perform any cleanup
    252252 * since blog or site IDs have changed since cache init.
    253253 *
    254254 * This function is deprecated. Use wp_cache_switch_to_blog() instead of this
  • src/wp-includes/class-wp-customize-manager.php

    diff --git a/src/wp-includes/class-wp-customize-manager.php b/src/wp-includes/class-wp-customize-manager.php
    index 66fb7ff..b7302ab 100644
    a b public function add_setting( $id, $args = array() ) { 
    10691069         * that have no corresponding setting created.
    10701070         *
    10711071         * This is a mechanism to "wake up" settings that have been dynamically created
    1072          * on the frontend and have been sent to WordPress in `$_POST['customized']`. When WP
     1072         * on the front end and have been sent to WordPress in `$_POST['customized']`. When WP
    10731073         * loads, the dynamically-created settings then will get created and previewed
    10741074         * even though they are not directly created statically with code.
    10751075         *
    public function get_autofocus() { 
    16341634         */
    16351635        public function customize_pane_settings() {
    16361636                /*
    1637                  * If the frontend and the admin are served from the same domain, load the
     1637                 * If the front end and the admin are served from the same domain, load the
    16381638                 * preview over ssl if the Customizer is being loaded over ssl. This avoids
    1639                  * insecure content warnings. This is not attempted if the admin and frontend
    1640                  * are on different domains to avoid the case where the frontend doesn't have
     1639                 * insecure content warnings. This is not attempted if the admin and front end
     1640                 * are on different domains to avoid the case where the front end doesn't have
    16411641                 * ssl certs. Domain mapping plugins can allow other urls in these conditions
    16421642                 * using the customize_allowed_urls filter.
    16431643                 */
    public function customize_pane_settings() { 
    17141714                        }
    17151715                }
    17161716
    1717                 // Pass to frontend the Customizer construct being deeplinked.
     1717                // Pass to front end the Customizer construct being deeplinked.
    17181718                foreach ( $this->get_autofocus() as $type => $id ) {
    17191719                        $can_autofocus = (
    17201720                                ( 'control' === $type && $this->get_control( $id ) && $this->get_control( $id )->check_capabilities() )
  • src/wp-includes/class-wp.php

    diff --git a/src/wp-includes/class-wp.php b/src/wp-includes/class-wp.php
    index 14beeaa..5b03d0f 100644
    a b public function parse_request($extra_query_vars = '') { 
    319319                        if ( $t->query_var && isset( $this->query_vars[$t->query_var] ) )
    320320                                $this->query_vars[$t->query_var] = str_replace( ' ', '+', $this->query_vars[$t->query_var] );
    321321
    322                 // Don't allow non-public taxonomies to be queried from the front-end.
     322                // Don't allow non-public taxonomies to be queried from the front end.
    323323                if ( ! is_admin() ) {
    324324                        foreach ( get_taxonomies( array( 'public' => false ), 'objects' ) as $taxonomy => $t ) {
    325325                                /*
  • src/wp-includes/customize/class-wp-customize-nav-menu-item-setting.php

    diff --git a/src/wp-includes/customize/class-wp-customize-nav-menu-item-setting.php b/src/wp-includes/customize/class-wp-customize-nav-menu-item-setting.php
    index 073423e..6d17720 100644
    a b public static function sort_wp_get_nav_menu_items( $items, $menu, $args ) { 
    494494                // @todo We should probably re-apply some constraints imposed by $args.
    495495                unset( $args['include'] );
    496496
    497                 // Remove invalid items only in frontend.
     497                // Remove invalid items only in front end.
    498498                if ( ! is_admin() ) {
    499499                        $items = array_filter( $items, '_is_valid_nav_menu_item' );
    500500                }
  • src/wp-includes/functions.wp-scripts.php

    diff --git a/src/wp-includes/functions.wp-scripts.php b/src/wp-includes/functions.wp-scripts.php
    index c83a9d1..a726a24 100644
    a b function wp_deregister_script( $handle ) { 
    191191                );
    192192
    193193                if ( in_array( $handle, $no ) ) {
    194                         $message = sprintf( __( 'Do not deregister the %1$s script in the administration area. To target the frontend theme, use the %2$s hook.' ),
     194                        $message = sprintf( __( 'Do not deregister the %1$s script in the administration area. To target the front end theme, use the %2$s hook.' ),
    195195                                "<code>$handle</code>", '<code>wp_enqueue_scripts</code>' );
    196196                        _doing_it_wrong( __FUNCTION__, $message, '3.6' );
    197197                        return;
  • src/wp-includes/js/heartbeat.js

    diff --git a/src/wp-includes/js/heartbeat.js b/src/wp-includes/js/heartbeat.js
    index 9f02582..9867ceb 100644
    a b  
    141141                                        settings.mainInterval = settings.minimalInterval;
    142142                                }
    143143
    144                                 // 'screenId' can be added from settings on the front-end where the JS global 'pagenow' is not set
     144                                // 'screenId' can be added from settings on the front end where the JS global 'pagenow' is not set
    145145                                if ( ! settings.screenId ) {
    146146                                        settings.screenId = options.screenId || 'front';
    147147                                }
  • src/wp-includes/js/plupload/wp-plupload.js

    diff --git a/src/wp-includes/js/plupload/wp-plupload.js b/src/wp-includes/js/plupload/wp-plupload.js
    index 09a37ce..88f0170 100644
    a b window.wp = window.wp || {}; 
    1414         *
    1515         * The Plupload library provides cross-browser uploader UI integration.
    1616         * This object bridges the Plupload API to integrate uploads into the
    17          * WordPress back-end and the WordPress media experience.
     17         * WordPress back end and the WordPress media experience.
    1818         *
    1919         * @param {object} options           The options passed to the new plupload instance.
    2020         * @param {object} options.container The id of uploader container.
  • src/wp-includes/js/swfupload/swfupload.js

    diff --git a/src/wp-includes/js/swfupload/swfupload.js b/src/wp-includes/js/swfupload/swfupload.js
    index 9c950d4..bbaa5ac 100644
    a b SWFUpload.completeURL = function(url) { 
    9797        if (typeof(url) !== "string" || url.match(/^https?:\/\//i) || url.match(/^\//)) {
    9898                return url;
    9999        }
    100        
     100
    101101        var currentURL = window.location.protocol + "//" + window.location.hostname + (window.location.port ? ":" + window.location.port : "");
    102        
     102
    103103        var indexSlash = window.location.pathname.lastIndexOf("/");
    104104        if (indexSlash <= 0) {
    105105                path = "/";
    106106        } else {
    107107                path = window.location.pathname.substr(0, indexSlash) + "/";
    108108        }
    109        
     109
    110110        return /*currentURL +*/ path + url;
    111        
     111
    112112};
    113113
    114114
    SWFUpload.prototype.initSettings = function () { 
    122122        this.ensureDefault = function (settingName, defaultValue) {
    123123                this.settings[settingName] = (this.settings[settingName] == undefined) ? defaultValue : this.settings[settingName];
    124124        };
    125        
    126         // Upload backend settings
     125
     126        // Upload back end settings
    127127        this.ensureDefault("upload_url", "");
    128128        this.ensureDefault("preserve_relative_urls", false);
    129129        this.ensureDefault("file_post_name", "Filedata");
    SWFUpload.prototype.initSettings = function () { 
    132132        this.ensureDefault("requeue_on_error", false);
    133133        this.ensureDefault("http_success", []);
    134134        this.ensureDefault("assume_success_timeout", 0);
    135        
     135
    136136        // File Settings
    137137        this.ensureDefault("file_types", "*.*");
    138138        this.ensureDefault("file_types_description", "All Files");
    SWFUpload.prototype.initSettings = function () { 
    143143        // Flash Settings
    144144        this.ensureDefault("flash_url", "swfupload.swf");
    145145        this.ensureDefault("prevent_swf_caching", true);
    146        
     146
    147147        // Button Settings
    148148        this.ensureDefault("button_image_url", "");
    149149        this.ensureDefault("button_width", 1);
    SWFUpload.prototype.initSettings = function () { 
    158158        this.ensureDefault("button_placeholder", null);
    159159        this.ensureDefault("button_cursor", SWFUpload.CURSOR.ARROW);
    160160        this.ensureDefault("button_window_mode", SWFUpload.WINDOW_MODE.WINDOW);
    161        
     161
    162162        // Debug Settings
    163163        this.ensureDefault("debug", false);
    164164        this.settings.debug_enabled = this.settings.debug;      // Here to maintain v2 API
    165        
     165
    166166        // Event Handlers
    167167        this.settings.return_upload_start_handler = this.returnUploadStart;
    168168        this.ensureDefault("swfupload_loaded_handler", null);
    SWFUpload.prototype.initSettings = function () { 
    170170        this.ensureDefault("file_queued_handler", null);
    171171        this.ensureDefault("file_queue_error_handler", null);
    172172        this.ensureDefault("file_dialog_complete_handler", null);
    173        
     173
    174174        this.ensureDefault("upload_start_handler", null);
    175175        this.ensureDefault("upload_progress_handler", null);
    176176        this.ensureDefault("upload_error_handler", null);
    177177        this.ensureDefault("upload_success_handler", null);
    178178        this.ensureDefault("upload_complete_handler", null);
    179        
     179
    180180        this.ensureDefault("debug_handler", this.debugMessage);
    181181
    182182        this.ensureDefault("custom_settings", {});
    183183
    184184        // Other settings
    185185        this.customSettings = this.settings.custom_settings;
    186        
     186
    187187        // Update the flash url if needed
    188188        if (!!this.settings.prevent_swf_caching) {
    189189                this.settings.flash_url = this.settings.flash_url + (this.settings.flash_url.indexOf("?") < 0 ? "?" : "&") + "preventswfcaching=" + new Date().getTime();
    190190        }
    191        
     191
    192192        if (!this.settings.preserve_relative_urls) {
    193193                //this.settings.flash_url = SWFUpload.completeURL(this.settings.flash_url);     // Don't need to do this one since flash doesn't look at it
    194194                this.settings.upload_url = SWFUpload.completeURL(this.settings.upload_url);
    195195                this.settings.button_image_url = SWFUpload.completeURL(this.settings.button_image_url);
    196196        }
    197        
     197
    198198        delete this.ensureDefault;
    199199};
    200200
    SWFUpload.prototype.loadFlash = function () { 
    223223        if (window[this.movieName] == undefined) {
    224224                window[this.movieName] = this.getMovieElement();
    225225        }
    226        
     226
    227227};
    228228
    229229// Private: getFlashHTML generates the object tag needed to embed the flash in to the document
    SWFUpload.prototype.getFlashVars = function () { 
    245245        // Build a string from the post param object
    246246        var paramString = this.buildParamString();
    247247        var httpSuccessString = this.settings.http_success.join(",");
    248        
     248
    249249        // Build the parameter string
    250250        return ["movieName=", encodeURIComponent(this.movieName),
    251251                        "&amp;uploadURL=", encodeURIComponent(this.settings.upload_url),
    SWFUpload.prototype.getMovieElement = function () { 
    284284        if (this.movieElement === null) {
    285285                throw "Could not find Flash element";
    286286        }
    287        
     287
    288288        return this.movieElement;
    289289};
    290290
    291291// Private: buildParamString takes the name/value pairs in the post_params setting object
    292292// and joins them up in to a string formatted "name=value&amp;name=value"
    293293SWFUpload.prototype.buildParamString = function () {
    294         var postParams = this.settings.post_params; 
     294        var postParams = this.settings.post_params;
    295295        var paramStringPairs = [];
    296296
    297297        if (typeof(postParams) === "object") {
    SWFUpload.prototype.destroy = function () { 
    313313        try {
    314314                // Make sure Flash is done before we try to remove it
    315315                this.cancelUpload(null, false);
    316                
     316
    317317
    318318                // Remove the SWFUpload DOM nodes
    319319                var movieElement = null;
    320320                movieElement = this.getMovieElement();
    321                
     321
    322322                if (movieElement && typeof(movieElement.CallFunction) === "unknown") { // We only want to do this in IE
    323323                        // Loop through all the movie's properties and remove all function references (DOM/JS IE 6/7 memory leak workaround)
    324324                        for (var i in movieElement) {
    SWFUpload.prototype.destroy = function () { 
    334334                                movieElement.parentNode.removeChild(movieElement);
    335335                        } catch (ex) {}
    336336                }
    337                
     337
    338338                // Remove IE form fix reference
    339339                window[this.movieName] = null;
    340340
    SWFUpload.prototype.destroy = function () { 
    347347                this.customSettings = null;
    348348                this.eventQueue = null;
    349349                this.movieName = null;
    350                
    351                
     350
     351
    352352                return true;
    353353        } catch (ex2) {
    354354                return false;
    SWFUpload.prototype.getSetting = function (name) { 
    440440// bugs in the ExternalInterface library.
    441441SWFUpload.prototype.callFlash = function (functionName, argumentArray) {
    442442        argumentArray = argumentArray || [];
    443        
     443
    444444        var movieElement = this.getMovieElement();
    445445        var returnValue, returnString;
    446446
    SWFUpload.prototype.callFlash = function (functionName, argumentArray) { 
    451451        } catch (ex) {
    452452                throw "Call to " + functionName + " failed";
    453453        }
    454        
     454
    455455        // Unescape file post param values
    456456        if (returnValue != undefined && typeof returnValue.post === "object") {
    457457                returnValue = this.unescapeFilePostParams(returnValue);
    SWFUpload.prototype.selectFiles = function () { 
    485485
    486486
    487487// Public: startUpload starts uploading the first file in the queue unless
    488 // the optional parameter 'fileID' specifies the ID 
     488// the optional parameter 'fileID' specifies the ID
    489489SWFUpload.prototype.startUpload = function (fileID) {
    490490        this.callFlash("StartUpload", [fileID]);
    491491};
    SWFUpload.prototype.getStats = function () { 
    519519        return this.callFlash("GetStats");
    520520};
    521521
    522 // Public: setStats changes the SWFUpload statistics.  You shouldn't need to 
     522// Public: setStats changes the SWFUpload statistics.  You shouldn't need to
    523523// change the statistics but you can.  Changing the statistics does not
    524524// affect SWFUpload accept for the successful_uploads count which is used
    525525// by the upload_limit setting to determine how many files the user may upload.
    SWFUpload.prototype.setHTTPSuccess = function (http_status_codes) { 
    622622        if (typeof http_status_codes === "string") {
    623623                http_status_codes = http_status_codes.replace(" ", "").split(",");
    624624        }
    625        
     625
    626626        this.settings.http_success = http_status_codes;
    627627        this.callFlash("SetHTTPSuccess", [http_status_codes]);
    628628};
    SWFUpload.prototype.setButtonImageURL = function (buttonImageURL) { 
    644644        if (buttonImageURL == undefined) {
    645645                buttonImageURL = "";
    646646        }
    647        
     647
    648648        this.settings.button_image_url = buttonImageURL;
    649649        this.callFlash("SetButtonImageURL", [buttonImageURL]);
    650650};
    SWFUpload.prototype.setButtonImageURL = function (buttonImageURL) { 
    653653SWFUpload.prototype.setButtonDimensions = function (width, height) {
    654654        this.settings.button_width = width;
    655655        this.settings.button_height = height;
    656        
     656
    657657        var movie = this.getMovieElement();
    658658        if (movie != undefined) {
    659659                movie.style.width = width + "px";
    660660                movie.style.height = height + "px";
    661661        }
    662        
     662
    663663        this.callFlash("SetButtonDimensions", [width, height]);
    664664};
    665665// Public: setButtonText Changes the text overlaid on the button
    SWFUpload.prototype.setButtonCursor = function (cursor) { 
    700700        Flash Event Interfaces
    701701        These functions are used by Flash to trigger the various
    702702        events.
    703        
     703
    704704        All these functions a Private.
    705        
     705
    706706        Because the ExternalInterface library is buggy the event calls
    707707        are added to a queue and the queue then executed by a setTimeout.
    708708        This ensures that events are executed in a determinate order and that
    SWFUpload.prototype.setButtonCursor = function (cursor) { 
    711711
    712712SWFUpload.prototype.queueEvent = function (handlerName, argumentArray) {
    713713        // Warning: Don't call this.debug inside here or you'll create an infinite loop
    714        
     714
    715715        if (argumentArray == undefined) {
    716716                argumentArray = [];
    717717        } else if (!(argumentArray instanceof Array)) {
    718718                argumentArray = [argumentArray];
    719719        }
    720        
     720
    721721        var self = this;
    722722        if (typeof this.settings[handlerName] === "function") {
    723723                // Queue the event
    724724                this.eventQueue.push(function () {
    725725                        this.settings[handlerName].apply(this, argumentArray);
    726726                });
    727                
     727
    728728                // Execute the next queued event
    729729                setTimeout(function () {
    730730                        self.executeNextEvent();
    731731                }, 0);
    732                
     732
    733733        } else if (this.settings[handlerName] !== null) {
    734734                throw "Event handler " + handlerName + " is unknown or is not a function";
    735735        }
    SWFUpload.prototype.flashReady = function () { 
    793793        }
    794794
    795795        this.cleanUp(movieElement);
    796        
     796
    797797        this.queueEvent("swfupload_loaded_handler");
    798798};
    799799
    SWFUpload.prototype.cleanUp = function (movieElement) { 
    814814                        }
    815815                }
    816816        } catch (ex1) {
    817        
     817
    818818        }
    819819
    820820        // Fix Flashes own cleanup code so if the SWFMovie was removed from the page
    SWFUpload.prototype.cleanUp = function (movieElement) { 
    825825                                instance[name] = null;
    826826                        }
    827827                } catch (flashEx) {
    828                
     828
    829829                }
    830830        };
    831831
    SWFUpload.prototype.returnUploadStart = function (file) { 
    876876        if (returnValue === undefined) {
    877877                returnValue = true;
    878878        }
    879        
     879
    880880        returnValue = !!returnValue;
    881        
     881
    882882        this.callFlash("ReturnUploadStart", [returnValue]);
    883883};
    884884
    SWFUpload.prototype.debug = function (message) { 
    918918        itself to the body if necessary.
    919919
    920920        The console is automatically scrolled as messages appear.
    921        
     921
    922922        If you are using your own debug handler or when you deploy to production and
    923923        have debug disabled you can remove these functions to reduce the file size
    924924        and complexity.
    925925********************************** */
    926    
     926
    927927// Private: debugMessage is the default debug_handler.  If you want to print debug messages
    928928// call the debug() function.  When overriding the function your own function should
    929929// check to see if the debug setting is true before outputting debug information.
  • src/wp-includes/js/tinymce/tinymce.js

    diff --git a/src/wp-includes/js/tinymce/tinymce.js b/src/wp-includes/js/tinymce/tinymce.js
    index 62bbf90..aa7a0ca 100644
    a b  
    8282
    8383                        target[fragments[fragments.length - 1]] = modules[id];
    8484                }
    85                
     85
    8686                // Expose private modules for unit tests
    8787                if (exports.AMDLC_TESTS) {
    8888                        privateModules = exports.privateModules || {};
    define("tinymce/util/JSON", [], function() { 
    3425434254 */
    3425534255
    3425634256/**
    34257  * This class enables you to use JSON-RPC to call backend methods.
     34257 * This class enables you to use JSON-RPC to call back end methods.
    3425834258 *
    3425934259 * @class tinymce.util.JSONRequest
    3426034260 * @example
    define("tinymce/ui/Throbber", [ 
    4066440664});
    4066540665
    4066640666expose(["tinymce/dom/EventUtils","tinymce/dom/Sizzle","tinymce/Env","tinymce/util/Tools","tinymce/dom/DomQuery","tinymce/html/Styles","tinymce/dom/TreeWalker","tinymce/html/Entities","tinymce/dom/DOMUtils","tinymce/dom/ScriptLoader","tinymce/AddOnManager","tinymce/dom/RangeUtils","tinymce/html/Node","tinymce/html/Schema","tinymce/html/SaxParser","tinymce/html/DomParser","tinymce/html/Writer","tinymce/html/Serializer","tinymce/dom/Serializer","tinymce/util/VK","tinymce/dom/ControlSelection","tinymce/dom/BookmarkManager","tinymce/dom/Selection","tinymce/Formatter","tinymce/UndoManager","tinymce/EditorCommands","tinymce/util/URI","tinymce/util/Class","tinymce/util/EventDispatcher","tinymce/util/Observable","tinymce/ui/Selector","tinymce/ui/Collection","tinymce/ui/ReflowQueue","tinymce/ui/Control","tinymce/ui/Factory","tinymce/ui/KeyboardNavigation","tinymce/ui/Container","tinymce/ui/DragHelper","tinymce/ui/Scrollable","tinymce/ui/Panel","tinymce/ui/Movable","tinymce/ui/Resizable","tinymce/ui/FloatPanel","tinymce/ui/Window","tinymce/ui/MessageBox","tinymce/WindowManager","tinymce/EditorObservable","tinymce/Shortcuts","tinymce/util/Promise","tinymce/Editor","tinymce/util/I18n","tinymce/FocusManager","tinymce/EditorManager","tinymce/util/XHR","tinymce/util/JSON","tinymce/util/JSONRequest","tinymce/util/JSONP","tinymce/util/LocalStorage","tinymce/Compat","tinymce/ui/Layout","tinymce/ui/AbsoluteLayout","tinymce/ui/Tooltip","tinymce/ui/Widget","tinymce/ui/Button","tinymce/ui/ButtonGroup","tinymce/ui/Checkbox","tinymce/ui/ComboBox","tinymce/ui/ColorBox","tinymce/ui/PanelButton","tinymce/ui/ColorButton","tinymce/util/Color","tinymce/ui/ColorPicker","tinymce/ui/Path","tinymce/ui/ElementPath","tinymce/ui/FormItem","tinymce/ui/Form","tinymce/ui/FieldSet","tinymce/ui/FilePicker","tinymce/ui/FitLayout","tinymce/ui/FlexLayout","tinymce/ui/FlowLayout","tinymce/ui/FormatControls","tinymce/ui/GridLayout","tinymce/ui/Iframe","tinymce/ui/Label","tinymce/ui/Toolbar","tinymce/ui/MenuBar","tinymce/ui/MenuButton","tinymce/ui/MenuItem","tinymce/ui/Menu","tinymce/ui/ListBox","tinymce/ui/Radio","tinymce/ui/Rect","tinymce/ui/ResizeHandle","tinymce/ui/Slider","tinymce/ui/Spacer","tinymce/ui/SplitButton","tinymce/ui/StackLayout","tinymce/ui/TabPanel","tinymce/ui/TextBox","tinymce/ui/Throbber"]);
    40667 })(this);
    40668  No newline at end of file
     40667})(this);
  • src/wp-includes/nav-menu.php

    diff --git a/src/wp-includes/nav-menu.php b/src/wp-includes/nav-menu.php
    index 4509389..aea07a6 100644
    a b function wp_get_nav_menu_items( $menu, $args = array() ) { 
    666666
    667667        $items = array_map( 'wp_setup_nav_menu_item', $items );
    668668
    669         if ( ! is_admin() ) { // Remove invalid items only in frontend
     669        if ( ! is_admin() ) { // Remove invalid items only in front end
    670670                $items = array_filter( $items, '_is_valid_nav_menu_item' );
    671671        }
    672672
  • src/wp-includes/post.php

    diff --git a/src/wp-includes/post.php b/src/wp-includes/post.php
    index cc8e843..15265bc 100644
    a b function get_post_types( $args = array(), $output = 'names', $operator = 'and' ) 
    902902 *     @type string      $description          A short descriptive summary of what the post type is.
    903903 *                                             Default empty.
    904904 *     @type bool        $public               Whether a post type is intended for use publicly either via
    905  *                                             the admin interface or by front-end users. While the default
     905 *                                             the admin interface or by front end users. While the default
    906906 *                                             settings of $exclude_from_search, $publicly_queryable, $show_ui,
    907907 *                                             and $show_in_nav_menus are inherited from public, each does not
    908908 *                                             rely on this relationship and controls a very specific intention.
    function wp_get_attachment_url( $post_id = 0 ) { 
    48964896                $url = get_the_guid( $post->ID );
    48974897        }
    48984898
    4899         // On SSL front-end, URLs should be HTTPS.
     4899        // On SSL front end, URLs should be HTTPS.
    49004900        if ( is_ssl() && ! is_admin() && 'wp-login.php' !== $GLOBALS['pagenow'] ) {
    49014901                $url = set_url_scheme( $url );
    49024902        }
  • src/wp-includes/taxonomy.php

    diff --git a/src/wp-includes/taxonomy.php b/src/wp-includes/taxonomy.php
    index 78dd52c..a37f636 100644
    a b function is_taxonomy_hierarchical($taxonomy) { 
    271271 * @since 2.3.0
    272272 * @since 4.2.0 Introduced `show_in_quick_edit` argument.
    273273 * @since 4.4.0 The `show_ui` argument is now enforced on the term editing screen.
    274  * @since 4.4.0 The `public` argument now controls whether the taxonomy can be queried on the front-end.
     274 * @since 4.4.0 The `public` argument now controls whether the taxonomy can be queried on the front end.
    275275 *
    276276 * @global array $wp_taxonomies Registered taxonomies.
    277277 * @global WP    $wp            WP instance.
  • src/wp-includes/user.php

    diff --git a/src/wp-includes/user.php b/src/wp-includes/user.php
    index e00c7ed..6eff20e 100644
    a b function validate_username( $username ) { 
    12851285 *                                             https. Default false.
    12861286 *     @type string      $user_registered      Date the user registered. Format is 'Y-m-d H:i:s'.
    12871287 *     @type string|bool $show_admin_bar_front Whether to display the Admin Bar for the user on the
    1288  *                                             site's frontend. Default true.
     1288 *                                             site's front end. Default true.
    12891289 *     @type string      $role                 User's role.
    12901290 * }
    12911291 * @return int|WP_Error The newly created user's ID or a WP_Error object if the user could not
  • src/wp-includes/widgets.php

    diff --git a/src/wp-includes/widgets.php b/src/wp-includes/widgets.php
    index b24b465..a6045f6 100644
    a b function dynamic_sidebar( $index = 1 ) { 
    638638        /**
    639639         * Fires before widgets are rendered in a dynamic sidebar.
    640640         *
    641          * Note: The action also fires for empty sidebars, and on both the front-end
    642          * and back-end, including the Inactive Widgets sidebar on the Widgets screen.
     641         * Note: The action also fires for empty sidebars, and on both the front end
     642         * and back end, including the Inactive Widgets sidebar on the Widgets screen.
    643643         *
    644644         * @since 3.9.0
    645645         *
    function dynamic_sidebar( $index = 1 ) { 
    674674                /**
    675675                 * Filter the parameters passed to a widget's display callback.
    676676                 *
    677                  * Note: The filter is evaluated on both the front-end and back-end,
     677                 * Note: The filter is evaluated on both the front end and back end,
    678678                 * including for the Inactive Widgets sidebar on the Widgets screen.
    679679                 *
    680680                 * @since 2.5.0
    function dynamic_sidebar( $index = 1 ) { 
    710710                /**
    711711                 * Fires before a widget's display callback is called.
    712712                 *
    713                  * Note: The action fires on both the front-end and back-end, including
     713                 * Note: The action fires on both the front end and back end, including
    714714                 * for widgets in the Inactive Widgets sidebar on the Widgets screen.
    715715                 *
    716716                 * The action is not fired for empty sidebars.
    function dynamic_sidebar( $index = 1 ) { 
    722722                 *
    723723                 *     @type string $name                Name of the widget.
    724724                 *     @type string $id                  Widget ID.
    725                  *     @type array|callable $callback    When the hook is fired on the front-end, $callback is an array
    726                  *                                       containing the widget object. Fired on the back-end, $callback
     725                 *     @type array|callable $callback    When the hook is fired on the front end, $callback is an array
     726                 *                                       containing the widget object. Fired on the back end, $callback
    727727                 *                                       is 'wp_widget_control', see $_callback.
    728728                 *     @type array          $params      An associative array of multi-widget arguments.
    729729                 *     @type string         $classname   CSS class applied to the widget container.
    730730                 *     @type string         $description The widget description.
    731                  *     @type array          $_callback   When the hook is fired on the back-end, $_callback is populated
     731                 *     @type array          $_callback   When the hook is fired on the back end, $_callback is populated
    732732                 *                                       with an array containing the widget object, see $callback.
    733733                 * }
    734734                 */
    function dynamic_sidebar( $index = 1 ) { 
    743743        /**
    744744         * Fires after widgets are rendered in a dynamic sidebar.
    745745         *
    746          * Note: The action also fires for empty sidebars, and on both the front-end
    747          * and back-end, including the Inactive Widgets sidebar on the Widgets screen.
     746         * Note: The action also fires for empty sidebars, and on both the front end
     747         * and back end, including the Inactive Widgets sidebar on the Widgets screen.
    748748         *
    749749         * @since 3.9.0
    750750         *
    function dynamic_sidebar( $index = 1 ) { 
    757757        /**
    758758         * Filter whether a sidebar has widgets.
    759759         *
    760          * Note: The filter is also evaluated for empty sidebars, and on both the front-end
    761          * and back-end, including the Inactive Widgets sidebar on the Widgets screen.
     760         * Note: The filter is also evaluated for empty sidebars, and on both the front end
     761         * and back end, including the Inactive Widgets sidebar on the Widgets screen.
    762762         *
    763763         * @since 3.9.0
    764764         *
    function dynamic_sidebar( $index = 1 ) { 
    770770}
    771771
    772772/**
    773  * Whether widget is displayed on the front-end.
     773 * Whether widget is displayed on the front end.
    774774 *
    775775 * Either $callback or $id_base can be used
    776776 * $id_base is the first argument when extending WP_Widget class
  • src/wp-signup.php

    diff --git a/src/wp-signup.php b/src/wp-signup.php
    index 6852bb8..394df17 100644
    a b function do_signup_header() { 
    4848do_action( 'before_signup_header' );
    4949
    5050/**
    51  * Prints styles for front-end Multisite signup pages
     51 * Prints styles for front end Multisite signup pages
    5252 *
    5353 * @since MU
    5454 */
    function confirm_blog_signup( $domain, $path, $blog_title, $user_name = '', $use 
    758758 */
    759759function signup_get_available_languages() {
    760760        /**
    761          * Filter the list of available languages for front-end site signups.
     761         * Filter the list of available languages for front end site signups.
    762762         *
    763763         * Passing an empty array to this hook will disable output of the setting on the
    764764         * signup form, and the default language will be used when creating the site.