Make WordPress Core

Changeset 36709


Ignore:
Timestamp:
02/25/2016 12:52:33 PM (9 years ago)
Author:
ocean90
Message:

Spelling: Standardize on "front end"/"back end" (noun) and "front-end"/"back-end" (adjective).

Props obrienlabs, thewanderingbrit.
Fixes #34887.

Location:
trunk/src
Files:
29 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/admin-ajax.php

    r35527 r36709  
    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
  • trunk/src/wp-admin/admin-post.php

    r34265 r36709  
    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
  • trunk/src/wp-admin/admin.php

    r36271 r36709  
    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
  • trunk/src/wp-admin/includes/class-wp-site-logo.php

    r36698 r36709  
    2828
    2929    /**
    30      * Hide header text on front-end if necessary.
     30     * Hide header text on front end if necessary.
    3131     *
    3232     * @since 4.5.0
  • trunk/src/wp-admin/includes/class-wp-theme-install-list-table.php

    r35567 r36709  
    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     */
  • trunk/src/wp-admin/includes/update-core.php

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

    r36698 r36709  
    15581558            inject = function ( sectionId ) {
    15591559                var parentContainer;
    1560                 if ( ! sectionId ) { // @todo allow a control to be embedded without a section, for instance a control embedded in the frontend
     1560                if ( ! sectionId ) { // @todo allow a control to be embedded without a section, for instance a control embedded in the front end.
    15611561                    return;
    15621562                }
     
    30403040            // Limit the URL to internal, front-end links.
    30413041            //
    3042             // If the frontend and the admin are served from the same domain, load the
     3042            // If the front end and the admin are served from the same domain, load the
    30433043            // preview over ssl if the Customizer is being loaded over ssl. This avoids
    3044             // insecure content warnings. This is not attempted if the admin and frontend
    3045             // are on different domains to avoid the case where the frontend doesn't have
     3044            // insecure content warnings. This is not attempted if the admin and front end
     3045            // are on different domains to avoid the case where the front end doesn't have
    30463046            // ssl certs.
    30473047
  • trunk/src/wp-admin/js/revisions.js

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

    r34979 r36709  
    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) );
  • trunk/src/wp-admin/network/sites.php

    r36664 r36709  
    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>'
  • trunk/src/wp-content/themes/twentyfourteen/inc/featured-content.php

    r31250 r36709  
    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 {
     
    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
     
    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.
     
    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;
     
    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.
     
    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;
  • trunk/src/wp-content/themes/twentythirteen/inc/custom-header.php

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

    r32843 r36709  
    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
  • trunk/src/wp-content/themes/twentytwelve/inc/custom-header.php

    r32116 r36709  
    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.
  • trunk/src/wp-includes/cache.php

    r36416 r36709  
    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 *
  • trunk/src/wp-includes/class-wp-customize-manager.php

    r36698 r36709  
    10851085     *
    10861086     * This is a mechanism to "wake up" settings that have been dynamically created
    1087      * on the frontend and have been sent to WordPress in `$_POST['customized']`. When WP
     1087     * on the front end and have been sent to WordPress in `$_POST['customized']`. When WP
    10881088     * loads, the dynamically-created settings then will get created and previewed
    10891089     * even though they are not directly created statically with code.
     
    16741674    public function customize_pane_settings() {
    16751675        /*
    1676          * If the frontend and the admin are served from the same domain, load the
     1676         * If the front end and the admin are served from the same domain, load the
    16771677         * preview over ssl if the Customizer is being loaded over ssl. This avoids
    1678          * insecure content warnings. This is not attempted if the admin and frontend
    1679          * are on different domains to avoid the case where the frontend doesn't have
     1678         * insecure content warnings. This is not attempted if the admin and front end
     1679         * are on different domains to avoid the case where the front end doesn't have
    16801680         * ssl certs. Domain mapping plugins can allow other urls in these conditions
    16811681         * using the customize_allowed_urls filter.
     
    17531753        }
    17541754
    1755         // Pass to frontend the Customizer construct being deeplinked.
     1755        // Pass to front end the Customizer construct being deeplinked.
    17561756        foreach ( $this->get_autofocus() as $type => $id ) {
    17571757            $can_autofocus = (
  • trunk/src/wp-includes/class-wp.php

    r36629 r36709  
    332332                $this->query_vars[$t->query_var] = str_replace( ' ', '+', $this->query_vars[$t->query_var] );
    333333
    334         // Don't allow non-publicly queryable taxonomies to be queried from the front-end.
     334        // Don't allow non-publicly queryable taxonomies to be queried from the front end.
    335335        if ( ! is_admin() ) {
    336336            foreach ( get_taxonomies( array( 'publicly_queryable' => false ), 'objects' ) as $taxonomy => $t ) {
  • trunk/src/wp-includes/customize/class-wp-customize-nav-menu-item-setting.php

    r36608 r36709  
    496496        unset( $args['include'] );
    497497
    498         // Remove invalid items only in frontend.
     498        // Remove invalid items only in front end.
    499499        if ( ! is_admin() ) {
    500500            $items = array_filter( $items, '_is_valid_nav_menu_item' );
  • trunk/src/wp-includes/functions.wp-scripts.php

    r36707 r36709  
    221221
    222222        if ( in_array( $handle, $no ) ) {
    223             $message = sprintf( __( 'Do not deregister the %1$s script in the administration area. To target the frontend theme, use the %2$s hook.' ),
     223            $message = sprintf( __( 'Do not deregister the %1$s script in the administration area. To target the front-end theme, use the %2$s hook.' ),
    224224                "<code>$handle</code>", '<code>wp_enqueue_scripts</code>' );
    225225            _doing_it_wrong( __FUNCTION__, $message, '3.6' );
  • trunk/src/wp-includes/js/customize-selective-refresh.js

    r36586 r36709  
    6464                    primarySetting: null,
    6565                    containerInclusive: false,
    66                     fallbackRefresh: true // Note this needs to be false in a frontend editing context.
     66                    fallbackRefresh: true // Note this needs to be false in a front-end editing context.
    6767                },
    6868                options.params || {}
     
    527527     * Request full page refresh.
    528528     *
    529      * When selective refresh is embedded in the context of frontend editing, this request
     529     * When selective refresh is embedded in the context of front-end editing, this request
    530530     * must fail or else changes will be lost, unless transactions are implemented.
    531531     *
  • trunk/src/wp-includes/js/heartbeat.js

    r33468 r36709  
    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';
  • trunk/src/wp-includes/js/plupload/wp-plupload.js

    r34047 r36709  
    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.
  • trunk/src/wp-includes/link-template.php

    r36646 r36709  
    29272927
    29282928/**
    2929  * Retrieve the URL for the current site where the front-end is accessible.
     2929 * Retrieve the URL for the current site where the front end is accessible.
    29302930 *
    29312931 * Returns the 'home' option with the appropriate protocol, 'https' if
     
    29452945
    29462946/**
    2947  * Retrieve the URL for a given site where the front-end is accessible.
     2947 * Retrieve the URL for a given site where the front end is accessible.
    29482948 *
    29492949 * Returns the 'home' option with the appropriate protocol, 'https' if
  • trunk/src/wp-includes/nav-menu.php

    r36645 r36709  
    676676    $items = array_map( 'wp_setup_nav_menu_item', $items );
    677677
    678     if ( ! is_admin() ) { // Remove invalid items only in frontend
     678    if ( ! is_admin() ) { // Remove invalid items only in front end
    679679        $items = array_filter( $items, '_is_valid_nav_menu_item' );
    680680    }
  • trunk/src/wp-includes/pluggable.php

    r36705 r36709  
    825825    }
    826826
    827     // Frontend cookie is secure when the auth cookie is secure and the site's home URL is forced HTTPS.
     827    // Front-end cookie is secure when the auth cookie is secure and the site's home URL is forced HTTPS.
    828828    $secure_logged_in_cookie = $secure && 'https' === parse_url( get_option( 'home' ), PHP_URL_SCHEME );
    829829
  • trunk/src/wp-includes/post.php

    r36704 r36709  
    50385038    }
    50395039
    5040     // On SSL front-end, URLs should be HTTPS.
     5040    // On SSL front end, URLs should be HTTPS.
    50415041    if ( is_ssl() && ! is_admin() && 'wp-login.php' !== $GLOBALS['pagenow'] ) {
    50425042        $url = set_url_scheme( $url );
  • trunk/src/wp-includes/taxonomy.php

    r36691 r36709  
    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 * @since 4.5.0 Introduced `publicly_queryable` argument.
    276276 *
  • trunk/src/wp-includes/user.php

    r36705 r36709  
    13581358 *     @type string      $user_registered      Date the user registered. Format is 'Y-m-d H:i:s'.
    13591359 *     @type string|bool $show_admin_bar_front Whether to display the Admin Bar for the user on the
    1360  *                                             site's frontend. Default true.
     1360 *                                             site's front end. Default true.
    13611361 *     @type string      $role                 User's role.
    13621362 * }
  • trunk/src/wp-includes/widgets.php

    r36667 r36709  
    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
     
    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         *
     
    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         *
     
    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         * }
     
    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
     
    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
     
    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
Note: See TracChangeset for help on using the changeset viewer.