Skip to content

Commit 22467e8

Browse files
Networks and sites: Replace "blog" usage with "site" in docs.
Multisite functions use the term "blog" to refer to what we now call a "site," e.g. `get_current_blog_id()`. These functions are here to stay because of our commitment to backwards compatibility. What we can do is set the documentation straight. See #35417. Built from https://develop.svn.wordpress.org/trunk@36416 git-svn-id: http://core.svn.wordpress.org/trunk@36383 1a063a9b-81f0-0310-95a4-ce76da25c4cd
1 parent af34d4f commit 22467e8

21 files changed

+66
-67
lines changed

wp-activate.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
/**
33
* Confirms that the activation key that is sent in an email after a user signs
4-
* up for a new blog matches the key for that user and then displays confirmation.
4+
* up for a new site matches the key for that user and then displays confirmation.
55
*
66
* @package WordPress
77
*/
@@ -117,9 +117,9 @@ function wpmu_activate_stylesheet() {
117117
</div>
118118

119119
<?php if ( $url && $url != network_home_url( '', 'http' ) ) :
120-
switch_to_blog( (int) $result['blog_id'] );
121-
$login_url = wp_login_url();
122-
restore_current_blog();
120+
switch_to_blog( (int) $result['blog_id'] );
121+
$login_url = wp_login_url();
122+
restore_current_blog();
123123
?>
124124
<p class="view"><?php printf( __( 'Your account is now activated. <a href="%1$s">View your site</a> or <a href="%2$s">Log in</a>' ), $url, esc_url( $login_url ) ); ?></p>
125125
<?php else: ?>

wp-admin/includes/class-wp-ms-sites-list-table.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ public function prepare_items() {
8484

8585
/*
8686
* If the network is large and a search is not being performed, show only
87-
* the latest blogs with no paging in order to avoid expensive count queries.
87+
* the latest sites with no paging in order to avoid expensive count queries.
8888
*/
8989
if ( !$s && wp_is_large_network() ) {
9090
if ( !isset($_REQUEST['orderby']) )
@@ -272,14 +272,14 @@ public function column_id( $blog ) {
272272
}
273273

274274
/**
275-
* Handles the blogname column output.
275+
* Handles the site name column output.
276276
*
277277
* @since 4.3.0
278278
* @access public
279279
*
280280
* @global string $mode
281281
*
282-
* @param array $blog Current blog.
282+
* @param array $blog Current site.
283283
*/
284284
public function column_blogname( $blog ) {
285285
global $mode;
@@ -469,7 +469,7 @@ protected function get_default_primary_column_name() {
469469
* @since 4.3.0
470470
* @access protected
471471
*
472-
* @param object $blog Blog being acted upon.
472+
* @param object $blog Site being acted upon.
473473
* @param string $column_name Current column name.
474474
* @param string $primary Primary column name.
475475
* @return string Row actions output.

wp-admin/includes/class-wp-ms-users-list-table.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ protected function _column_blogs( $user, $classes, $data, $primary ) {
304304
}
305305

306306
/**
307-
* Handles the blogs/sites column output.
307+
* Handles the sites column output.
308308
*
309309
* @since 4.3.0
310310
* @access public

wp-admin/includes/deprecated.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -983,7 +983,7 @@ function add_contextual_help( $screen, $help ) {
983983
}
984984

985985
/**
986-
* Get the allowed themes for the current blog.
986+
* Get the allowed themes for the current site.
987987
*
988988
* @since 3.0.0
989989
* @deprecated 3.4.0 Use wp_get_themes()

wp-admin/includes/ms.php

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,14 @@ function check_upload_size( $file ) {
4848
}
4949

5050
/**
51-
* Delete a blog.
51+
* Delete a site.
5252
*
5353
* @since 3.0.0
5454
*
5555
* @global wpdb $wpdb WordPress database abstraction object.
5656
*
57-
* @param int $blog_id Blog ID.
58-
* @param bool $drop True if blog's table should be dropped. Default is false.
57+
* @param int $blog_id Site ID.
58+
* @param bool $drop True if site's database tables should be dropped. Default is false.
5959
*/
6060
function wpmu_delete_blog( $blog_id, $drop = false ) {
6161
global $wpdb;
@@ -68,12 +68,12 @@ function wpmu_delete_blog( $blog_id, $drop = false ) {
6868

6969
$blog = get_blog_details( $blog_id );
7070
/**
71-
* Fires before a blog is deleted.
71+
* Fires before a site is deleted.
7272
*
7373
* @since MU
7474
*
75-
* @param int $blog_id The blog ID.
76-
* @param bool $drop True if blog's table should be dropped. Default is false.
75+
* @param int $blog_id The site ID.
76+
* @param bool $drop True if site's table should be dropped. Default is false.
7777
*/
7878
do_action( 'delete_blog', $blog_id, $drop );
7979

@@ -112,12 +112,12 @@ function wpmu_delete_blog( $blog_id, $drop = false ) {
112112

113113
$tables = $wpdb->tables( 'blog' );
114114
/**
115-
* Filter the tables to drop when the blog is deleted.
115+
* Filter the tables to drop when the site is deleted.
116116
*
117117
* @since MU
118118
*
119-
* @param array $tables The blog tables to be dropped.
120-
* @param int $blog_id The ID of the blog to drop tables for.
119+
* @param array $tables The site tables to be dropped.
120+
* @param int $blog_id The ID of the site to drop tables for.
121121
*/
122122
$drop_tables = apply_filters( 'wpmu_drop_tables', $tables, $blog_id );
123123

@@ -128,12 +128,12 @@ function wpmu_delete_blog( $blog_id, $drop = false ) {
128128
$wpdb->delete( $wpdb->blogs, array( 'blog_id' => $blog_id ) );
129129

130130
/**
131-
* Filter the upload base directory to delete when the blog is deleted.
131+
* Filter the upload base directory to delete when the site is deleted.
132132
*
133133
* @since MU
134134
*
135135
* @param string $uploads['basedir'] Uploads path without subdirectory. @see wp_upload_dir()
136-
* @param int $blog_id The blog ID.
136+
* @param int $blog_id The site ID.
137137
*/
138138
$dir = apply_filters( 'wpmu_delete_blog_upload_dir', $uploads['basedir'], $blog_id );
139139
$dir = rtrim( $dir, DIRECTORY_SEPARATOR );
@@ -410,7 +410,7 @@ function new_user_email_admin_notice() {
410410
}
411411

412412
/**
413-
* Check whether a blog has used its allotted upload space.
413+
* Check whether a site has used its allotted upload space.
414414
*
415415
* @since MU
416416
*
@@ -437,7 +437,7 @@ function upload_is_user_over_quota( $echo = true ) {
437437
}
438438

439439
/**
440-
* Displays the amount of disk space used by the current blog. Not used in core.
440+
* Displays the amount of disk space used by the current site. Not used in core.
441441
*
442442
* @since MU
443443
*/
@@ -462,7 +462,7 @@ function display_space_usage() {
462462
}
463463

464464
/**
465-
* Get the remaining upload space for this blog.
465+
* Get the remaining upload space for this site.
466466
*
467467
* @since MU
468468
*
@@ -478,11 +478,11 @@ function fix_import_form_size( $size ) {
478478
}
479479

480480
/**
481-
* Displays the edit blog upload space setting form on the Edit Blog screen.
481+
* Displays the site upload space quota setting form on the Edit Site Settings screen.
482482
*
483483
* @since 3.0.0
484484
*
485-
* @param int $id The ID of the blog to display the setting for.
485+
* @param int $id The ID of the site to display the setting for.
486486
*/
487487
function upload_space_setting( $id ) {
488488
switch_to_blog( $id );

wp-admin/includes/options.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,11 +131,11 @@ function options_reading_add_js() {
131131
}
132132

133133
/**
134-
* Render the blog charset setting.
134+
* Render the site charset setting.
135135
*
136136
* @since 3.5.0
137137
*/
138138
function options_reading_blog_charset() {
139139
echo '<input name="blog_charset" type="text" id="blog_charset" value="' . esc_attr( get_option( 'blog_charset' ) ) . '" class="regular-text" />';
140140
echo '<p class="description">' . __( 'The <a href="https://codex.wordpress.org/Glossary#Character_set">character encoding</a> of your site (UTF-8 is recommended)' ) . '</p>';
141-
}
141+
}

wp-admin/includes/schema.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
* @global wpdb $wpdb WordPress database abstraction object.
3131
*
3232
* @param string $scope Optional. The tables for which to retrieve SQL. Can be all, global, ms_global, or blog tables. Defaults to all.
33-
* @param int $blog_id Optional. The blog ID for which to retrieve SQL. Default is the current blog ID.
33+
* @param int $blog_id Optional. The site ID for which to retrieve SQL. Default is the current site ID.
3434
* @return string The SQL needed to create the requested tables.
3535
*/
3636
function wp_get_db_schema( $scope = 'all', $blog_id = null ) {
@@ -397,7 +397,7 @@ function populate_options() {
397397
'siteurl' => $guessurl,
398398
'home' => $guessurl,
399399
'blogname' => __('My Site'),
400-
/* translators: blog tagline */
400+
/* translators: site tagline */
401401
'blogdescription' => __('Just another WordPress site'),
402402
'users_can_register' => 0,
403403
'admin_email' => '[email protected]',
@@ -529,7 +529,7 @@ function populate_options() {
529529

530530
// 3.0 multisite
531531
if ( is_multisite() ) {
532-
/* translators: blog tagline */
532+
/* translators: site tagline */
533533
$options[ 'blogdescription' ] = sprintf(__('Just another %s site'), get_current_site()->site_name );
534534
$options[ 'permalink_structure' ] = '/%year%/%monthnum%/%day%/%postname%/';
535535
}

wp-admin/includes/upgrade.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@
2727
*
2828
* @since 2.1.0
2929
*
30-
* @param string $blog_title Blog title.
30+
* @param string $blog_title Site title.
3131
* @param string $user_name User's username.
3232
* @param string $user_email User's email.
33-
* @param bool $public Whether blog is public.
33+
* @param bool $public Whether site is public.
3434
* @param string $deprecated Optional. Not used.
3535
* @param string $user_password Optional. User's chosen password. Default empty (random password).
3636
* @param string $language Optional. Language chosen. Default empty.
@@ -64,7 +64,7 @@ function wp_install( $blog_title, $user_name, $user_email, $public, $deprecated
6464

6565
/*
6666
* Create default user. If the user already exists, the user tables are
67-
* being shared among blogs. Just set the role in that case.
67+
* being shared among sites. Just set the role in that case.
6868
*/
6969
$user_id = username_exists($user_name);
7070
$user_password = trim($user_password);
@@ -359,8 +359,8 @@ function wp_install_maybe_enable_pretty_permalinks() {
359359
*
360360
* @since 2.1.0
361361
*
362-
* @param string $blog_title Blog title.
363-
* @param string $blog_url Blog url.
362+
* @param string $blog_title Site title.
363+
* @param string $blog_url Site url.
364364
* @param int $user_id User ID.
365365
* @param string $password User's Password.
366366
*/

wp-admin/network/upgrade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@
9292
*
9393
* @since MU
9494
*
95-
* @param int $blog_id The id of the blog.
95+
* @param int $blog_id The Site ID.
9696
*/
9797
do_action( 'wpmu_upgrade_site', $details[ 'blog_id' ] );
9898
}

wp-includes/cache.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ function wp_cache_set( $key, $data, $group = '', $expire = 0 ) {
209209
* @see WP_Object_Cache::switch_to_blog()
210210
* @global WP_Object_Cache $wp_object_cache Object cache global instance.
211211
*
212-
* @param int $blog_id Blog ID.
212+
* @param int $blog_id Site ID.
213213
*/
214214
function wp_cache_switch_to_blog( $blog_id ) {
215215
global $wp_object_cache;

0 commit comments

Comments
 (0)