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

Props obrienlabs, thewanderingbrit.
Fixes #34887.
Built from https://develop.svn.wordpress.org/trunk@36709


git-svn-id: http://core.svn.wordpress.org/trunk@36676 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Dominik Schilling 2016-02-25 12:53:27 +00:00
parent 0425e01d21
commit e5ea82d81a
30 changed files with 56 additions and 56 deletions

View File

@ -21,7 +21,7 @@ if ( ! defined( 'WP_ADMIN' ) ) {
/** Load WordPress Bootstrap */
require_once( dirname( dirname( __FILE__ ) ) . '/wp-load.php' );
/** Allow for cross-domain requests (from the frontend). */
/** Allow for cross-domain requests (from the front end). */
send_origin_headers();
// Require an action parameter

View File

@ -18,7 +18,7 @@ if ( defined('ABSPATH') )
else
require_once( dirname( dirname( __FILE__ ) ) . '/wp-load.php' );
/** Allow for cross-domain requests (from the frontend). */
/** Allow for cross-domain requests (from the front end). */
send_origin_headers();
require_once(ABSPATH . 'wp-admin/includes/admin.php');

View File

@ -146,7 +146,7 @@ if ( current_user_can( 'manage_options' ) ) {
* handled separately.
*
* The WP_MAX_MEMORY_LIMIT constant specifically defines the maximum memory limit available
* when in the administration back-end. The default is 256M, or 256 megabytes of memory.
* when in the administration back end. The default is 256M, or 256 megabytes of memory.
*
* @since 3.0.0
*

View File

@ -27,7 +27,7 @@ class WP_Site_Logo {
}
/**
* Hide header text on front-end if necessary.
* Hide header text on front end if necessary.
*
* @since 4.5.0
* @access public

View File

@ -241,7 +241,7 @@ class WP_Theme_Install_List_Table extends WP_Themes_List_Table {
* public 'rating' => float 80
* public 'num_ratings' => int 1
* public 'homepage' => string 'http://wordpress.org/themes/magazine-basic'
* 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>.'
* 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>.'
* public 'download_link' => string 'http://wordpress.org/themes/download/magazine-basic.1.1.zip'
*/
public function single_row( $theme ) {

View File

@ -1095,7 +1095,7 @@ function update_core($from, $to) {
// Clear the cache to prevent an update_option() from saving a stale db_version to the cache
wp_cache_flush();
// (Not all cache backends listen to 'flush')
// (Not all cache back ends listen to 'flush')
wp_cache_delete( 'alloptions', 'options' );
// Remove working directory

View File

@ -1557,7 +1557,7 @@
// Watch for changes to the section state
inject = function ( sectionId ) {
var parentContainer;
if ( ! sectionId ) { // @todo allow a control to be embedded without a section, for instance a control embedded in the frontend
if ( ! sectionId ) { // @todo allow a control to be embedded without a section, for instance a control embedded in the front end.
return;
}
// Wait for the section to be registered
@ -3039,10 +3039,10 @@
// Limit the URL to internal, front-end links.
//
// If the frontend and the admin are served from the same domain, load the
// If the front end and the admin are served from the same domain, load the
// preview over ssl if the Customizer is being loaded over ssl. This avoids
// insecure content warnings. This is not attempted if the admin and frontend
// are on different domains to avoid the case where the frontend doesn't have
// insecure content warnings. This is not attempted if the admin and front end
// are on different domains to avoid the case where the front end doesn't have
// ssl certs.
this.add( 'previewUrl', params.previewUrl ).setter( function( to ) {

View File

@ -14,7 +14,7 @@ window.wp = window.wp || {};
*/
revisions = wp.revisions = { model: {}, view: {}, controller: {} };
// Link post revisions data served from the back-end.
// Link post revisions data served from the back end.
revisions.settings = window._wpRevisionsSettings || {};
// For debugging

View File

@ -39,7 +39,7 @@ get_current_screen()->add_help_tab( array(
'id' => 'overview',
'title' => __('Overview'),
'content' =>
'<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>' .
'<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>' .
'<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>'
) );

View File

@ -35,7 +35,7 @@ get_current_screen()->add_help_tab( array(
'<li>' . __('Dashboard leads to the Dashboard for that site.') . '</li>' .
'<li>' . __('Deactivate, Archive, and Spam which lead to confirmation screens. These actions can be reversed later.') . '</li>' .
'<li>' . __('Delete which is a permanent action after the confirmation screens.') . '</li>' .
'<li>' . __('Visit to go to the frontend site live.') . '</li></ul>' .
'<li>' . __('Visit to go to the front-end site live.') . '</li></ul>' .
'<p>' . __('The site ID is used internally, and is not shown on the front end of the site or to users/viewers.') . '</p>' .
'<p>' . __('Clicking on bold headings can re-sort this table.') . '</p>'
) );

View File

@ -8,7 +8,7 @@
* For maximum compatibility with different methods of posting users
* will designate a featured post tag to associate posts with. Since
* this tag now has special meaning beyond that of a normal tags, users
* will have the ability to hide it from the front-end of their site.
* will have the ability to hide it from the front end of their site.
*/
class Featured_Content {
@ -95,7 +95,7 @@ class Featured_Content {
}
/**
* Hide "featured" tag from the front-end.
* Hide "featured" tag from the front end.
*
* Has to run on wp_loaded so that the preview filters of the Customizer
* have a chance to alter the value.
@ -288,7 +288,7 @@ class Featured_Content {
}
/**
* Hide featured tag from displaying when global terms are queried from the front-end.
* Hide featured tag from displaying when global terms are queried from the front end.
*
* Hooks into the "get_terms" filter.
*
@ -304,7 +304,7 @@ class Featured_Content {
*/
public static function hide_featured_term( $terms, $taxonomies, $args ) {
// This filter is only appropriate on the front-end.
// This filter is only appropriate on the front end.
if ( is_admin() ) {
return $terms;
}
@ -336,7 +336,7 @@ class Featured_Content {
/**
* Hide featured tag from display when terms associated with a post object
* are queried from the front-end.
* are queried from the front end.
*
* Hooks into the "get_the_terms" filter.
*
@ -353,7 +353,7 @@ class Featured_Content {
*/
public static function hide_the_featured_term( $terms, $id, $taxonomy ) {
// This filter is only appropriate on the front-end.
// This filter is only appropriate on the front end.
if ( is_admin() ) {
return $terms;
}

View File

@ -13,7 +13,7 @@
* Set up the WordPress core custom header arguments and settings.
*
* @uses add_theme_support() to register support for 3.4 and up.
* @uses twentythirteen_header_style() to style front-end.
* @uses twentythirteen_header_style() to style front end.
* @uses twentythirteen_admin_header_style() to style wp-admin form.
* @uses twentythirteen_admin_header_image() to add custom markup to wp-admin form.
* @uses register_default_headers() to set up the bundled header images.

View File

@ -124,7 +124,7 @@ function twentytwelve_get_font_url() {
}
/**
* Enqueue scripts and styles for front-end.
* Enqueue scripts and styles for front end.
*
* @since Twenty Twelve 1.0
*/

View File

@ -13,7 +13,7 @@
* Set up the WordPress core custom header arguments and settings.
*
* @uses add_theme_support() to register support for 3.4 and up.
* @uses twentytwelve_header_style() to style front-end.
* @uses twentytwelve_header_style() to style front end.
* @uses twentytwelve_admin_header_style() to style wp-admin form.
* @uses twentytwelve_admin_header_image() to add custom markup to wp-admin form.
*

View File

@ -247,8 +247,8 @@ function wp_cache_add_non_persistent_groups( $groups ) {
/**
* Reset internal cache keys and structures.
*
* If the cache backend uses global blog or site IDs as part of its cache keys,
* this function instructs the backend to reset those keys and perform any cleanup
* If the cache back end uses global blog or site IDs as part of its cache keys,
* this function instructs the back end to reset those keys and perform any cleanup
* since blog or site IDs have changed since cache init.
*
* This function is deprecated. Use wp_cache_switch_to_blog() instead of this

View File

@ -1084,7 +1084,7 @@ final class WP_Customize_Manager {
* that have no corresponding setting created.
*
* This is a mechanism to "wake up" settings that have been dynamically created
* on the frontend and have been sent to WordPress in `$_POST['customized']`. When WP
* on the front end and have been sent to WordPress in `$_POST['customized']`. When WP
* loads, the dynamically-created settings then will get created and previewed
* even though they are not directly created statically with code.
*
@ -1673,10 +1673,10 @@ final class WP_Customize_Manager {
*/
public function customize_pane_settings() {
/*
* If the frontend and the admin are served from the same domain, load the
* If the front end and the admin are served from the same domain, load the
* preview over ssl if the Customizer is being loaded over ssl. This avoids
* insecure content warnings. This is not attempted if the admin and frontend
* are on different domains to avoid the case where the frontend doesn't have
* insecure content warnings. This is not attempted if the admin and front end
* are on different domains to avoid the case where the front end doesn't have
* ssl certs. Domain mapping plugins can allow other urls in these conditions
* using the customize_allowed_urls filter.
*/
@ -1752,7 +1752,7 @@ final class WP_Customize_Manager {
}
}
// Pass to frontend the Customizer construct being deeplinked.
// Pass to front end the Customizer construct being deeplinked.
foreach ( $this->get_autofocus() as $type => $id ) {
$can_autofocus = (
( 'control' === $type && $this->get_control( $id ) && $this->get_control( $id )->check_capabilities() )

View File

@ -331,7 +331,7 @@ class WP {
if ( $t->query_var && isset( $this->query_vars[$t->query_var] ) )
$this->query_vars[$t->query_var] = str_replace( ' ', '+', $this->query_vars[$t->query_var] );
// Don't allow non-publicly queryable taxonomies to be queried from the front-end.
// Don't allow non-publicly queryable taxonomies to be queried from the front end.
if ( ! is_admin() ) {
foreach ( get_taxonomies( array( 'publicly_queryable' => false ), 'objects' ) as $taxonomy => $t ) {
/*

View File

@ -495,7 +495,7 @@ class WP_Customize_Nav_Menu_Item_Setting extends WP_Customize_Setting {
// @todo We should probably re-apply some constraints imposed by $args.
unset( $args['include'] );
// Remove invalid items only in frontend.
// Remove invalid items only in front end.
if ( ! is_admin() ) {
$items = array_filter( $items, '_is_valid_nav_menu_item' );
}

View File

@ -220,7 +220,7 @@ function wp_deregister_script( $handle ) {
);
if ( in_array( $handle, $no ) ) {
$message = sprintf( __( 'Do not deregister the %1$s script in the administration area. To target the frontend theme, use the %2$s hook.' ),
$message = sprintf( __( 'Do not deregister the %1$s script in the administration area. To target the front-end theme, use the %2$s hook.' ),
"<code>$handle</code>", '<code>wp_enqueue_scripts</code>' );
_doing_it_wrong( __FUNCTION__, $message, '3.6' );
return;

View File

@ -63,7 +63,7 @@ wp.customize.selectiveRefresh = ( function( $, api ) {
settings: [],
primarySetting: null,
containerInclusive: false,
fallbackRefresh: true // Note this needs to be false in a frontend editing context.
fallbackRefresh: true // Note this needs to be false in a front-end editing context.
},
options.params || {}
);
@ -526,7 +526,7 @@ wp.customize.selectiveRefresh = ( function( $, api ) {
/**
* Request full page refresh.
*
* When selective refresh is embedded in the context of frontend editing, this request
* When selective refresh is embedded in the context of front-end editing, this request
* must fail or else changes will be lost, unless transactions are implemented.
*
* @since 4.5.0

View File

@ -141,7 +141,7 @@
settings.mainInterval = settings.minimalInterval;
}
// 'screenId' can be added from settings on the front-end where the JS global 'pagenow' is not set
// 'screenId' can be added from settings on the front end where the JS global 'pagenow' is not set
if ( ! settings.screenId ) {
settings.screenId = options.screenId || 'front';
}

View File

@ -14,7 +14,7 @@ window.wp = window.wp || {};
*
* The Plupload library provides cross-browser uploader UI integration.
* This object bridges the Plupload API to integrate uploads into the
* WordPress back-end and the WordPress media experience.
* WordPress back end and the WordPress media experience.
*
* @param {object} options The options passed to the new plupload instance.
* @param {object} options.container The id of uploader container.

View File

@ -2926,7 +2926,7 @@ function get_shortcut_link() {
}
/**
* Retrieve the URL for the current site where the front-end is accessible.
* Retrieve the URL for the current site where the front end is accessible.
*
* Returns the 'home' option with the appropriate protocol, 'https' if
* {@see is_ssl()} and 'http' otherwise. If `$scheme` is 'http' or 'https',
@ -2944,7 +2944,7 @@ function home_url( $path = '', $scheme = null ) {
}
/**
* Retrieve the URL for a given site where the front-end is accessible.
* Retrieve the URL for a given site where the front end is accessible.
*
* Returns the 'home' option with the appropriate protocol, 'https' if
* {@see is_ssl()} and 'http' otherwise. If `$scheme` is 'http' or 'https',

View File

@ -675,7 +675,7 @@ function wp_get_nav_menu_items( $menu, $args = array() ) {
$items = array_map( 'wp_setup_nav_menu_item', $items );
if ( ! is_admin() ) { // Remove invalid items only in frontend
if ( ! is_admin() ) { // Remove invalid items only in front end
$items = array_filter( $items, '_is_valid_nav_menu_item' );
}

View File

@ -824,7 +824,7 @@ function wp_set_auth_cookie( $user_id, $remember = false, $secure = '', $token =
$secure = is_ssl();
}
// Frontend cookie is secure when the auth cookie is secure and the site's home URL is forced HTTPS.
// Front-end cookie is secure when the auth cookie is secure and the site's home URL is forced HTTPS.
$secure_logged_in_cookie = $secure && 'https' === parse_url( get_option( 'home' ), PHP_URL_SCHEME );
/**

View File

@ -5037,7 +5037,7 @@ function wp_get_attachment_url( $post_id = 0 ) {
$url = get_the_guid( $post->ID );
}
// On SSL front-end, URLs should be HTTPS.
// On SSL front end, URLs should be HTTPS.
if ( is_ssl() && ! is_admin() && 'wp-login.php' !== $GLOBALS['pagenow'] ) {
$url = set_url_scheme( $url );
}

View File

@ -271,7 +271,7 @@ function is_taxonomy_hierarchical($taxonomy) {
* @since 2.3.0
* @since 4.2.0 Introduced `show_in_quick_edit` argument.
* @since 4.4.0 The `show_ui` argument is now enforced on the term editing screen.
* @since 4.4.0 The `public` argument now controls whether the taxonomy can be queried on the front-end.
* @since 4.4.0 The `public` argument now controls whether the taxonomy can be queried on the front end.
* @since 4.5.0 Introduced `publicly_queryable` argument.
*
* @global array $wp_taxonomies Registered taxonomies.

View File

@ -1357,7 +1357,7 @@ function validate_username( $username ) {
* https. Default false.
* @type string $user_registered Date the user registered. Format is 'Y-m-d H:i:s'.
* @type string|bool $show_admin_bar_front Whether to display the Admin Bar for the user on the
* site's frontend. Default true.
* site's front end. Default true.
* @type string $role User's role.
* }
* @return int|WP_Error The newly created user's ID or a WP_Error object if the user could not

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.5-beta1-36708';
$wp_version = '4.5-beta1-36709';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.

View File

@ -638,8 +638,8 @@ function dynamic_sidebar( $index = 1 ) {
/**
* Fires before widgets are rendered in a dynamic sidebar.
*
* Note: The action also fires for empty sidebars, and on both the front-end
* and back-end, including the Inactive Widgets sidebar on the Widgets screen.
* Note: The action also fires for empty sidebars, and on both the front end
* and back end, including the Inactive Widgets sidebar on the Widgets screen.
*
* @since 3.9.0
*
@ -674,7 +674,7 @@ function dynamic_sidebar( $index = 1 ) {
/**
* Filter the parameters passed to a widget's display callback.
*
* Note: The filter is evaluated on both the front-end and back-end,
* Note: The filter is evaluated on both the front end and back end,
* including for the Inactive Widgets sidebar on the Widgets screen.
*
* @since 2.5.0
@ -710,7 +710,7 @@ function dynamic_sidebar( $index = 1 ) {
/**
* Fires before a widget's display callback is called.
*
* Note: The action fires on both the front-end and back-end, including
* Note: The action fires on both the front end and back end, including
* for widgets in the Inactive Widgets sidebar on the Widgets screen.
*
* The action is not fired for empty sidebars.
@ -722,13 +722,13 @@ function dynamic_sidebar( $index = 1 ) {
*
* @type string $name Name of the widget.
* @type string $id Widget ID.
* @type array|callable $callback When the hook is fired on the front-end, $callback is an array
* containing the widget object. Fired on the back-end, $callback
* @type array|callable $callback When the hook is fired on the front end, $callback is an array
* containing the widget object. Fired on the back end, $callback
* is 'wp_widget_control', see $_callback.
* @type array $params An associative array of multi-widget arguments.
* @type string $classname CSS class applied to the widget container.
* @type string $description The widget description.
* @type array $_callback When the hook is fired on the back-end, $_callback is populated
* @type array $_callback When the hook is fired on the back end, $_callback is populated
* with an array containing the widget object, see $callback.
* }
*/
@ -743,8 +743,8 @@ function dynamic_sidebar( $index = 1 ) {
/**
* Fires after widgets are rendered in a dynamic sidebar.
*
* Note: The action also fires for empty sidebars, and on both the front-end
* and back-end, including the Inactive Widgets sidebar on the Widgets screen.
* Note: The action also fires for empty sidebars, and on both the front end
* and back end, including the Inactive Widgets sidebar on the Widgets screen.
*
* @since 3.9.0
*
@ -757,8 +757,8 @@ function dynamic_sidebar( $index = 1 ) {
/**
* Filter whether a sidebar has widgets.
*
* Note: The filter is also evaluated for empty sidebars, and on both the front-end
* and back-end, including the Inactive Widgets sidebar on the Widgets screen.
* Note: The filter is also evaluated for empty sidebars, and on both the front end
* and back end, including the Inactive Widgets sidebar on the Widgets screen.
*
* @since 3.9.0
*
@ -770,7 +770,7 @@ function dynamic_sidebar( $index = 1 ) {
}
/**
* Whether widget is displayed on the front-end.
* Whether widget is displayed on the front end.
*
* Either $callback or $id_base can be used
* $id_base is the first argument when extending WP_Widget class