Changeset 37985 for trunk/src/wp-includes/ms-deprecated.php
- Timestamp:
- 07/06/2016 12:39:01 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/ms-deprecated.php
r37667 r37985 25 25 */ 26 26 function get_dashboard_blog() { 27 _deprecated_function( __FUNCTION__, '3.1 ' );27 _deprecated_function( __FUNCTION__, '3.1.0' ); 28 28 if ( $blog = get_site_option( 'dashboard_blog' ) ) 29 29 return get_blog_details( $blog ); … … 42 42 */ 43 43 function generate_random_password( $len = 8 ) { 44 _deprecated_function( __FUNCTION__, '3.0 ', 'wp_generate_password()' );44 _deprecated_function( __FUNCTION__, '3.0.0', 'wp_generate_password()' ); 45 45 return wp_generate_password( $len ); 46 46 } … … 62 62 */ 63 63 function is_site_admin( $user_login = '' ) { 64 _deprecated_function( __FUNCTION__, '3.0 ', 'is_super_admin()' );64 _deprecated_function( __FUNCTION__, '3.0.0', 'is_super_admin()' ); 65 65 66 66 if ( empty( $user_login ) ) { … … 87 87 */ 88 88 function graceful_fail( $message ) { 89 _deprecated_function( __FUNCTION__, '3.0 ', 'wp_die()' );89 _deprecated_function( __FUNCTION__, '3.0.0', 'wp_die()' ); 90 90 $message = apply_filters( 'graceful_fail', $message ); 91 91 $message_template = apply_filters( 'graceful_fail_template', … … 127 127 */ 128 128 function get_user_details( $username ) { 129 _deprecated_function( __FUNCTION__, '3.0 ', 'get_user_by()' );129 _deprecated_function( __FUNCTION__, '3.0.0', 'get_user_by()' ); 130 130 return get_user_by('login', $username); 131 131 } … … 141 141 */ 142 142 function clear_global_post_cache( $post_id ) { 143 _deprecated_function( __FUNCTION__, '3.0 ', 'clean_post_cache()' );143 _deprecated_function( __FUNCTION__, '3.0.0', 'clean_post_cache()' ); 144 144 } 145 145 … … 152 152 */ 153 153 function is_main_blog() { 154 _deprecated_function( __FUNCTION__, '3.0 ', 'is_main_site()' );154 _deprecated_function( __FUNCTION__, '3.0.0', 'is_main_site()' ); 155 155 return is_main_site(); 156 156 } … … 168 168 */ 169 169 function validate_email( $email, $check_domain = true) { 170 _deprecated_function( __FUNCTION__, '3.0 ', 'is_email()' );170 _deprecated_function( __FUNCTION__, '3.0.0', 'is_email()' ); 171 171 return is_email( $email, $check_domain ); 172 172 } … … 184 184 */ 185 185 function get_blog_list( $start = 0, $num = 10, $deprecated = '' ) { 186 _deprecated_function( __FUNCTION__, '3.0 ', 'wp_get_sites()' );186 _deprecated_function( __FUNCTION__, '3.0.0', 'wp_get_sites()' ); 187 187 188 188 global $wpdb; … … 217 217 */ 218 218 function get_most_active_blogs( $num = 10, $display = true ) { 219 _deprecated_function( __FUNCTION__, '3.0 ' );219 _deprecated_function( __FUNCTION__, '3.0.0' ); 220 220 221 221 $blogs = get_blog_list( 0, 'all', false ); // $blog_id -> $details … … 268 268 */ 269 269 function wpmu_admin_do_redirect( $url = '' ) { 270 _deprecated_function( __FUNCTION__, '3.3 ' );270 _deprecated_function( __FUNCTION__, '3.3.0' ); 271 271 272 272 $ref = ''; … … 308 308 */ 309 309 function wpmu_admin_redirect_add_updated_param( $url = '' ) { 310 _deprecated_function( __FUNCTION__, '3.3 ' );310 _deprecated_function( __FUNCTION__, '3.3.0' ); 311 311 312 312 if ( strpos( $url, 'updated=true' ) === false ) { … … 333 333 */ 334 334 function get_user_id_from_string( $string ) { 335 _deprecated_function( __FUNCTION__, '3.6 ', 'get_user_by()' );335 _deprecated_function( __FUNCTION__, '3.6.0', 'get_user_by()' ); 336 336 337 337 if ( is_email( $string ) ) … … 358 358 */ 359 359 function get_blogaddress_by_domain( $domain, $path ) { 360 _deprecated_function( __FUNCTION__, '3.7 ' );360 _deprecated_function( __FUNCTION__, '3.7.0' ); 361 361 362 362 if ( is_subdomain_install() ) { … … 389 389 */ 390 390 function create_empty_blog( $domain, $path, $weblog_title, $site_id = 1 ) { 391 _deprecated_function( __FUNCTION__, '4.4 ' );391 _deprecated_function( __FUNCTION__, '4.4.0' ); 392 392 393 393 if ( empty($path) ) … … 425 425 */ 426 426 function get_admin_users_for_domain( $sitedomain = '', $path = '' ) { 427 _deprecated_function( __FUNCTION__, '4.4 ' );427 _deprecated_function( __FUNCTION__, '4.4.0' ); 428 428 429 429 global $wpdb; … … 470 470 global $wpdb; 471 471 472 _deprecated_function( __FUNCTION__, '4.6 ', 'get_sites()' );472 _deprecated_function( __FUNCTION__, '4.6.0', 'get_sites()' ); 473 473 474 474 if ( wp_is_large_network() )
Note: See TracChangeset
for help on using the changeset viewer.