Ticket #35417: 35417.2.diff
File 35417.2.diff, 20.7 KB (added by , 9 years ago) |
---|
-
src/wp-activate.php
1 1 <?php 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 7 7 */ … … 117 117 </div> 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> 125 125 <?php else: ?> -
src/wp-admin/includes/class-wp-ms-sites-list-table.php
84 84 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() ) { 90 90 if ( !isset($_REQUEST['orderby']) ) … … 272 272 } 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 278 278 * @access public … … 279 279 * 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 ) { 285 285 global $mode; … … 469 469 * @since 4.3.0 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. 475 475 * @return string Row actions output. -
src/wp-admin/includes/class-wp-ms-users-list-table.php
304 304 } 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 310 310 * @access public -
src/wp-admin/includes/deprecated.php
983 983 } 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 989 989 * @deprecated 3.4.0 Use wp_get_themes() -
src/wp-admin/includes/ms.php
48 48 } 49 49 50 50 /** 51 * Delete a blog.51 * Delete a site. 52 52 * 53 53 * @since 3.0.0 54 54 * 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 table should be dropped. Default is false.57 * @param int $blog_id Site ID. 58 * @param bool $drop True if site's table should be dropped. Default is false. 59 59 */ 60 60 function wpmu_delete_blog( $blog_id, $drop = false ) { 61 61 global $wpdb; … … 68 68 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 ); 79 79 … … 112 112 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 ); 123 123 … … 128 128 $wpdb->delete( $wpdb->blogs, array( 'blog_id' => $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 ); 139 139 $dir = rtrim( $dir, DIRECTORY_SEPARATOR ); … … 410 410 } 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 416 416 * … … 437 437 } 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 443 443 */ … … 462 462 } 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 468 468 * … … 478 478 } 479 479 480 480 /** 481 * Displays the edit blog upload space setting form on the Edit Blogscreen.481 * Displays the site upload space quota setting form on the Edit Site Settings screen. 482 482 * 483 483 * @since 3.0.0 484 484 * 485 * @param int $id The ID of the blogto display the setting for.485 * @param int $id The ID of the site to display the setting for. 486 486 */ 487 487 function upload_space_setting( $id ) { 488 488 switch_to_blog( $id ); -
src/wp-admin/includes/options.php
131 131 } 132 132 133 133 /** 134 * Render the blogcharset setting.134 * Render the site charset setting. 135 135 * 136 136 * @since 3.5.0 137 137 */ … … 138 138 function options_reading_blog_charset() { 139 139 echo '<input name="blog_charset" type="text" id="blog_charset" value="' . esc_attr( get_option( 'blog_charset' ) ) . '" class="regular-text" />'; 140 140 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 } 142 No newline at end of file 141 } -
src/wp-admin/includes/schema.php
30 30 * @global wpdb $wpdb WordPress database abstraction object. 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 */ 36 36 function wp_get_db_schema( $scope = 'all', $blog_id = null ) { … … 397 397 'siteurl' => $guessurl, 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, 403 403 'admin_email' => 'you@example.com', … … 529 529 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%/'; 535 535 } -
src/wp-admin/includes/upgrade.php
27 27 * 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). 36 36 * @param string $language Optional. Language chosen. Default empty. … … 64 64 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); 70 70 $user_password = trim($user_password); … … 359 359 * 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. 366 366 */ -
src/wp-admin/network/upgrade.php
92 92 * 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' ] ); 98 98 } -
src/wp-includes/cache.php
209 209 * @see WP_Object_Cache::switch_to_blog() 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 ) { 215 215 global $wp_object_cache; -
src/wp-includes/capabilities.php
435 435 } 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 445 445 */ -
src/wp-includes/class-http.php
685 685 * prevent plugins from working and core functionality, if you don't include api.wordpress.org. 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 691 691 * are supported, eg *.wordpress.org will allow for all subdomains of wordpress.org to be contacted. -
src/wp-includes/class-wp-customize-setting.php
207 207 } 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 213 213 * @access protected … … 216 216 protected $_previewed_blog_id; 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 222 222 * @access public … … 374 374 * Callback function to filter non-multidimensional theme mods and options. 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 * 380 380 * @since 3.4.0 -
src/wp-includes/class-wp-http-proxy.php
24 24 * <li>WP_PROXY_USERNAME - Proxy username, if it requires authentication.</li> 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> 30 30 * … … 150 150 /** 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. 156 156 * … … 165 165 public function send_through_proxy( $uri ) { 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); 171 171 -
src/wp-includes/class-wp-roles.php
133 133 * Reinitialize the object 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 139 139 * @access public -
src/wp-includes/class-wp-theme.php
1130 1130 * 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 */ 1136 1136 public function is_allowed( $check = 'both', $blog_id = null ) { -
src/wp-includes/class-wp-user.php
157 157 /** 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 = '' ) { 164 164 $this->data = $data; -
src/wp-includes/comment-template.php
102 102 * 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. 108 108 * … … 133 133 * 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. 139 139 * … … 154 154 * 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. 160 160 * … … 1241 1241 * @global int $user_ID 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'. 1247 1247 * @param bool $separate_comments Optional. Whether to separate the comments by comment type. -
src/wp-includes/deprecated.php
2347 2347 } 2348 2348 2349 2349 /** 2350 * Get users for the blog.2350 * Get users for the site. 2351 2351 * 2352 * For setups that use the multi- blogfeature. Can be used outside of the2353 * multi- blogfeature.2352 * For setups that use the multi-site feature. Can be used outside of the 2353 * multi-site feature. 2354 2354 * 2355 2355 * @since 2.2.0 2356 2356 * @deprecated 3.1.0 Use get_users() … … 2357 2357 * @see get_users() 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 blog2360 * @global int $blog_id The site id of the site for those that use more than one site. 2361 2361 * 2362 * @param int $id BlogID.2363 * @return array List of users that are part of that BlogID2362 * @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 = '' ) { 2366 2366 _deprecated_function( __FUNCTION__, '3.1', 'get_users()' ); … … 2793 2793 } 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 2799 2799 * @deprecated 3.3.0 Use is_user_member_of_blog() 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 */ 2805 2805 function is_blog_user( $blog_id = 0 ) { -
src/wp-includes/ms-blogs.php
9 9 */ 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 15 15 * … … 24 24 * 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 ); 30 30 } … … 991 991 992 992 update_posts_count(); 993 993 } 994