Make WordPress Core

Ticket #34887: 34887.2.patch

File 34887.2.patch, 26.0 KB (added by thewanderingbrit, 9 years ago)

Same as 34887.1.patch, but includes phrases found in themes

  • wp-admin/admin-ajax.php

     
    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
  • wp-admin/admin-post.php

     
    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');
  • wp-admin/admin.php

     
    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         *
  • wp-admin/includes/class-wp-theme-install-list-table.php

     
    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 ) {
  • wp-admin/includes/update-core.php

     
    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
  • wp-admin/js/customize-controls.js

     
    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 ) {
  • wp-admin/js/revisions.js

     
    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
  • wp-admin/my-sites.php

     
    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
  • wp-admin/network/sites.php

     
    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) );
  • wp-content/themes/twentyfifteen/inc/custom-header.php

     
    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 *
     
    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 */
  • wp-content/themes/twentyfifteen/inc/customizer.php

     
    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 *
  • wp-content/themes/twentyfourteen/inc/featured-content.php

     
    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
     
    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.
     
    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         *
     
    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                }
     
    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         *
     
    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                }
  • wp-content/themes/twentythirteen/inc/custom-header.php

     
    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.
  • wp-content/themes/twentytwelve/functions.php

     
    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 */
  • wp-content/themes/twentytwelve/inc/custom-header.php

     
    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 *
  • wp-includes/cache.php

     
    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
  • wp-includes/class-wp-customize-manager.php

     
    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         *
     
    16311631         */
    16321632        public function customize_pane_settings() {
    16331633                /*
    1634                  * If the frontend and the admin are served from the same domain, load the
     1634                 * If the front end and the admin are served from the same domain, load the
    16351635                 * preview over ssl if the Customizer is being loaded over ssl. This avoids
    1636                  * insecure content warnings. This is not attempted if the admin and frontend
    1637                  * are on different domains to avoid the case where the frontend doesn't have
     1636                 * insecure content warnings. This is not attempted if the admin and front end
     1637                 * are on different domains to avoid the case where the front end doesn't have
    16381638                 * ssl certs. Domain mapping plugins can allow other urls in these conditions
    16391639                 * using the customize_allowed_urls filter.
    16401640                 */
     
    17111711                        }
    17121712                }
    17131713
    1714                 // Pass to frontend the Customizer construct being deeplinked.
     1714                // Pass to front end the Customizer construct being deeplinked.
    17151715                foreach ( $this->get_autofocus() as $type => $id ) {
    17161716                        $can_autofocus = (
    17171717                                ( 'control' === $type && $this->get_control( $id ) && $this->get_control( $id )->check_capabilities() )
  • wp-includes/class-wp.php

     
    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                                /*
  • wp-includes/customize/class-wp-customize-nav-menu-item-setting.php

     
    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                }
  • wp-includes/functions.wp-scripts.php

     
    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;
  • wp-includes/js/heartbeat.js

     
    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                                }
  • wp-includes/js/plupload/wp-plupload.js

     
    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.
  • wp-includes/js/swfupload/swfupload.js

     
    1 /**
     1/**
    22 * SWFUpload: http://www.swfupload.org, http://swfupload.googlecode.com
    33 *
    44 * mmSWFUpload 1.0: Flash upload dialog - http://profandesign.se/swfupload/,  http://www.vinterwebb.se/
     
    123123                this.settings[settingName] = (this.settings[settingName] == undefined) ? defaultValue : this.settings[settingName];
    124124        };
    125125       
    126         // Upload backend settings
     126        // Upload back end settings
    127127        this.ensureDefault("upload_url", "");
    128128        this.ensureDefault("preserve_relative_urls", false);
    129129        this.ensureDefault("file_post_name", "Filedata");
  • wp-includes/nav-menu.php

     
    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
  • wp-includes/post.php

     
    1 <?php
     1<?php
    22/**
    33 * Core Post API
    44 *
     
    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.
     
    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        }
  • wp-includes/taxonomy.php

     
    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.
  • wp-includes/user.php

     
    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
  • wp-includes/widgets.php

     
    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         *
     
    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
     
    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.
     
    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                 */
     
    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         *
     
    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         *
     
    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
  • wp-signup.php

     
    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 */
     
    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.