Changeset 36416
- Timestamp:
- 01/28/2016 03:34:02 AM (9 years ago)
- Location:
- trunk/src
- Files:
-
- 20 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-activate.php
r34882 r36416 2 2 /** 3 3 * Confirms that the activation key that is sent in an email after a user signs 4 * up for a new blogmatches 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. 5 5 * 6 6 * @package WordPress … … 118 118 119 119 <?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(); 123 123 ?> 124 124 <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> -
trunk/src/wp-admin/includes/class-wp-ms-sites-list-table.php
r35241 r36416 85 85 /* 86 86 * 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. 88 88 */ 89 89 if ( !$s && wp_is_large_network() ) { … … 273 273 274 274 /** 275 * Handles the blogname column output.275 * Handles the site name column output. 276 276 * 277 277 * @since 4.3.0 … … 280 280 * @global string $mode 281 281 * 282 * @param array $blog Current blog.282 * @param array $blog Current site. 283 283 */ 284 284 public function column_blogname( $blog ) { … … 470 470 * @access protected 471 471 * 472 * @param object $blog Blogbeing acted upon.472 * @param object $blog Site being acted upon. 473 473 * @param string $column_name Current column name. 474 474 * @param string $primary Primary column name. -
trunk/src/wp-admin/includes/class-wp-ms-users-list-table.php
r35241 r36416 305 305 306 306 /** 307 * Handles the blogs/sites column output.307 * Handles the sites column output. 308 308 * 309 309 * @since 4.3.0 -
trunk/src/wp-admin/includes/deprecated.php
r36071 r36416 984 984 985 985 /** 986 * Get the allowed themes for the current blog.986 * Get the allowed themes for the current site. 987 987 * 988 988 * @since 3.0.0 -
trunk/src/wp-admin/includes/ms.php
r35885 r36416 49 49 50 50 /** 51 * Delete a blog.51 * Delete a site. 52 52 * 53 53 * @since 3.0.0 … … 55 55 * @global wpdb $wpdb WordPress database abstraction object. 56 56 * 57 * @param int $blog_id BlogID.58 * @param bool $drop True if blog's tableshould 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. 59 59 */ 60 60 function wpmu_delete_blog( $blog_id, $drop = false ) { … … 69 69 $blog = get_blog_details( $blog_id ); 70 70 /** 71 * Fires before a blogis deleted.71 * Fires before a site is deleted. 72 72 * 73 73 * @since MU 74 74 * 75 * @param int $blog_id The blogID.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. 77 77 */ 78 78 do_action( 'delete_blog', $blog_id, $drop ); … … 113 113 $tables = $wpdb->tables( 'blog' ); 114 114 /** 115 * Filter the tables to drop when the blogis deleted.115 * Filter the tables to drop when the site is deleted. 116 116 * 117 117 * @since MU 118 118 * 119 * @param array $tables The blogtables to be dropped.120 * @param int $blog_id The ID of the blogto 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. 121 121 */ 122 122 $drop_tables = apply_filters( 'wpmu_drop_tables', $tables, $blog_id ); … … 129 129 130 130 /** 131 * Filter the upload base directory to delete when the blogis deleted.131 * Filter the upload base directory to delete when the site is deleted. 132 132 * 133 133 * @since MU 134 134 * 135 135 * @param string $uploads['basedir'] Uploads path without subdirectory. @see wp_upload_dir() 136 * @param int $blog_id The blogID.136 * @param int $blog_id The site ID. 137 137 */ 138 138 $dir = apply_filters( 'wpmu_delete_blog_upload_dir', $uploads['basedir'], $blog_id ); … … 411 411 412 412 /** 413 * Check whether a bloghas used its allotted upload space.413 * Check whether a site has used its allotted upload space. 414 414 * 415 415 * @since MU … … 438 438 439 439 /** 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. 441 441 * 442 442 * @since MU … … 463 463 464 464 /** 465 * Get the remaining upload space for this blog.465 * Get the remaining upload space for this site. 466 466 * 467 467 * @since MU … … 479 479 480 480 /** 481 * Displays the edit blog upload space setting form on the Edit Blogscreen.482 * 483 * @since 3.0.0 484 * 485 * @param int $id The ID of the blogto display the setting for.481 * Displays the site upload space quota setting form on the Edit Site Settings screen. 482 * 483 * @since 3.0.0 484 * 485 * @param int $id The ID of the site to display the setting for. 486 486 */ 487 487 function upload_space_setting( $id ) { -
trunk/src/wp-admin/includes/options.php
r36263 r36416 132 132 133 133 /** 134 * Render the blogcharset setting.134 * Render the site charset setting. 135 135 * 136 136 * @since 3.5.0 -
trunk/src/wp-admin/includes/schema.php
r36255 r36416 31 31 * 32 32 * @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 blogID.33 * @param int $blog_id Optional. The site ID for which to retrieve SQL. Default is the current site ID. 34 34 * @return string The SQL needed to create the requested tables. 35 35 */ … … 398 398 'home' => $guessurl, 399 399 'blogname' => __('My Site'), 400 /* translators: blogtagline */400 /* translators: site tagline */ 401 401 'blogdescription' => __('Just another WordPress site'), 402 402 'users_can_register' => 0, … … 530 530 // 3.0 multisite 531 531 if ( is_multisite() ) { 532 /* translators: blogtagline */532 /* translators: site tagline */ 533 533 $options[ 'blogdescription' ] = sprintf(__('Just another %s site'), get_current_site()->site_name ); 534 534 $options[ 'permalink_structure' ] = '/%year%/%monthnum%/%day%/%postname%/'; -
trunk/src/wp-admin/includes/upgrade.php
r36180 r36416 28 28 * @since 2.1.0 29 29 * 30 * @param string $blog_title Blogtitle.30 * @param string $blog_title Site title. 31 31 * @param string $user_name User's username. 32 32 * @param string $user_email User's email. 33 * @param bool $public Whether blogis public.33 * @param bool $public Whether site is public. 34 34 * @param string $deprecated Optional. Not used. 35 35 * @param string $user_password Optional. User's chosen password. Default empty (random password). … … 65 65 /* 66 66 * 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. 68 68 */ 69 69 $user_id = username_exists($user_name); … … 360 360 * @since 2.1.0 361 361 * 362 * @param string $blog_title Blogtitle.363 * @param string $blog_url Blogurl.362 * @param string $blog_title Site title. 363 * @param string $blog_url Site url. 364 364 * @param int $user_id User ID. 365 365 * @param string $password User's Password. -
trunk/src/wp-admin/network/upgrade.php
r35182 r36416 93 93 * @since MU 94 94 * 95 * @param int $blog_id The id of the blog.95 * @param int $blog_id The Site ID. 96 96 */ 97 97 do_action( 'wpmu_upgrade_site', $details[ 'blog_id' ] ); -
trunk/src/wp-includes/cache.php
r36069 r36416 210 210 * @global WP_Object_Cache $wp_object_cache Object cache global instance. 211 211 * 212 * @param int $blog_id BlogID.212 * @param int $blog_id Site ID. 213 213 */ 214 214 function wp_cache_switch_to_blog( $blog_id ) { -
trunk/src/wp-includes/capabilities.php
r36316 r36416 436 436 437 437 /** 438 * Whether current user has a capability or role for a given blog.438 * Whether current user has a capability or role for a given site. 439 439 * 440 440 * @since 3.0.0 441 441 * 442 * @param int $blog_id Blog ID442 * @param int $blog_id Site ID. 443 443 * @param string $capability Capability or role name. 444 444 * @return bool -
trunk/src/wp-includes/class-http.php
r36367 r36416 686 686 * 687 687 * You block external URL requests by defining WP_HTTP_BLOCK_EXTERNAL as true in your wp-config.php 688 * file and this will only allow localhost and your blogto make requests. The constant688 * file and this will only allow localhost and your site to make requests. The constant 689 689 * WP_ACCESSIBLE_HOSTS will allow additional hosts to go through for requests. The format of the 690 690 * WP_ACCESSIBLE_HOSTS constant is a comma separated list of hostnames to allow, wildcard domains -
trunk/src/wp-includes/class-wp-customize-setting.php
r35724 r36416 208 208 209 209 /** 210 * The ID for the current blogwhen the preview() method was called.210 * The ID for the current site when the preview() method was called. 211 211 * 212 212 * @since 4.2.0 … … 217 217 218 218 /** 219 * Return true if the current blog is not the same as the previewed blog.219 * Return true if the current site is not the same as the previewed site. 220 220 * 221 221 * @since 4.2.0 … … 375 375 * 376 376 * If switch_to_blog() was called after the preview() method, and the current 377 * blog is now not the same blog, then this method does a no-op and returns377 * site is now not the same site, then this method does a no-op and returns 378 378 * the original value. 379 379 * -
trunk/src/wp-includes/class-wp-http-proxy.php
r33876 r36416 25 25 * <li>WP_PROXY_PASSWORD - Proxy password, if it requires authentication.</li> 26 26 * <li>WP_PROXY_BYPASS_HOSTS - Will prevent the hosts in this list from going through the proxy. 27 * You do not need to have localhost and the bloghost in this list, because they will not be passed27 * You do not need to have localhost and the site host in this list, because they will not be passed 28 28 * through the proxy. The list should be presented in a comma separated list, wildcards using * are supported, eg. *.wordpress.org</li> 29 29 * </ol> … … 151 151 * Whether URL should be sent through the proxy server. 152 152 * 153 * We want to keep localhost and the blogURL from being sent through the proxy server, because153 * We want to keep localhost and the site URL from being sent through the proxy server, because 154 154 * some proxies can not handle this. We also have the constant available for defining other 155 155 * hosts that won't be sent through the proxy. … … 166 166 /* 167 167 * parse_url() only handles http, https type URLs, and will emit E_WARNING on failure. 168 * This will be displayed on blogs, which is not reasonable.168 * This will be displayed on sites, which is not reasonable. 169 169 */ 170 170 $check = @parse_url($uri); -
trunk/src/wp-includes/class-wp-roles.php
r35170 r36416 134 134 * 135 135 * Recreates the role objects. This is typically called only by switch_to_blog() 136 * after switching wpdb to a new blogID.136 * after switching wpdb to a new site ID. 137 137 * 138 138 * @since 3.5.0 -
trunk/src/wp-includes/class-wp-theme.php
r36366 r36416 1131 1131 * @param string $check Optional. Whether to check only the 'network'-wide settings, the 'site' 1132 1132 * settings, or 'both'. Defaults to 'both'. 1133 * @param int $blog_id Optional. Ignored if only network-wide settings are checked. Defaults to current blog.1133 * @param int $blog_id Optional. Ignored if only network-wide settings are checked. Defaults to current site. 1134 1134 * @return bool Whether the theme is allowed for the network. Returns true in single-site. 1135 1135 */ -
trunk/src/wp-includes/class-wp-user.php
r35954 r36416 158 158 * Sets up object properties, including capabilities. 159 159 * 160 * @param object $data User DB row object161 * @param int $blog_id Optional. The blog id to initialize for160 * @param object $data User DB row object. 161 * @param int $blog_id Optional. The site ID to initialize for. 162 162 */ 163 163 public function init( $data, $blog_id = '' ) { -
trunk/src/wp-includes/comment-template.php
r36343 r36416 103 103 * Care should be taken to protect the email address and assure that email 104 104 * harvesters do not capture your commentors' email address. Most assume that 105 * their email address will not appear in raw form on the blog. Doing so will105 * their email address will not appear in raw form on the site. Doing so will 106 106 * enable anyone, including those that people don't want to get the email 107 107 * address and use it for their own means good and bad. … … 134 134 * Care should be taken to protect the email address and assure that email 135 135 * harvesters do not capture your commentors' email address. Most assume that 136 * their email address will not appear in raw form on the blog. Doing so will136 * their email address will not appear in raw form on the site. Doing so will 137 137 * enable anyone, including those that people don't want to get the email 138 138 * address and use it for their own means good and bad. … … 155 155 * Care should be taken to protect the email address and assure that email 156 156 * harvesters do not capture your commentors' email address. Most assume that 157 * their email address will not appear in raw form on the blog. Doing so will157 * their email address will not appear in raw form on the site. Doing so will 158 158 * enable anyone, including those that people don't want to get the email 159 159 * address and use it for their own means good and bad. … … 1242 1242 * @global string $user_identity 1243 1243 * @global bool $overridden_cpage 1244 * @global bool $withcomments 1244 * @global bool $withcomments 1245 1245 * 1246 1246 * @param string $file Optional. The file to load. Default '/comments.php'. -
trunk/src/wp-includes/deprecated.php
r36111 r36416 2348 2348 2349 2349 /** 2350 * Get users for the blog.2351 * 2352 * For setups that use the multi -blogfeature. Can be used outside of the2353 * multi -blogfeature.2350 * Get users for the site. 2351 * 2352 * For setups that use the multisite feature. Can be used outside of the 2353 * multisite feature. 2354 2354 * 2355 2355 * @since 2.2.0 … … 2358 2358 * 2359 2359 * @global wpdb $wpdb WordPress database abstraction object. 2360 * @global int $blog_id The Blog id of the blog for those that use more than one blog2361 * 2362 * @param int $id BlogID.2363 * @return array List of users that are part of that BlogID2360 * @global int $blog_id The site ID of the site for those that use more than one site. 2361 * 2362 * @param int $id Site ID. 2363 * @return array List of users that are part of that site ID 2364 2364 */ 2365 2365 function get_users_of_blog( $id = '' ) { … … 2794 2794 2795 2795 /** 2796 * Checks if the current user belong to a given blog.2796 * Checks if the current user belong to a given site. 2797 2797 * 2798 2798 * @since MU … … 2800 2800 * @see is_user_member_of_blog() 2801 2801 * 2802 * @param int $blog_id BlogID2802 * @param int $blog_id Site ID 2803 2803 * @return bool True if the current users belong to $blog_id, false if not. 2804 2804 */ -
trunk/src/wp-includes/ms-blogs.php
r36413 r36416 10 10 11 11 /** 12 * Update the last_updated field for the current blog.12 * Update the last_updated field for the current site. 13 13 * 14 14 * @since MU … … 25 25 * @since MU 26 26 * 27 * @param int $blog_id BlogID.27 * @param int $blog_id Site ID. 28 28 */ 29 29 do_action( 'wpmu_blog_updated', $wpdb->blogid ); … … 992 992 update_posts_count(); 993 993 } 994
Note: See TracChangeset
for help on using the changeset viewer.