Ticket #21270: 21270.5.diff
File 21270.5.diff, 1.1 KB (added by , 13 years ago) |
---|
-
wp-includes/ms-blogs.php
329 329 if ( empty( $id ) ) 330 330 $id = get_current_blog_id(); 331 331 332 if ( $id == get_current_blog_id())332 if ( get_current_blog_id() == $id ) 333 333 return get_option( $option, $default ); 334 334 335 335 switch_to_blog( $id ); … … 364 364 if ( empty( $id ) ) 365 365 $id = get_current_blog_id(); 366 366 367 if ( $id == get_current_blog_id())367 if ( get_current_blog_id() == $id ) 368 368 return add_option( $option, $value ); 369 369 370 370 switch_to_blog( $id ); … … 389 389 if ( empty( $id ) ) 390 390 $id = get_current_blog_id(); 391 391 392 if ( $id == get_current_blog_id())392 if ( get_current_blog_id() == $id ) 393 393 return delete_option( $option ); 394 394 395 395 switch_to_blog( $id ); … … 415 415 if ( null !== $deprecated ) 416 416 _deprecated_argument( __FUNCTION__, '3.1' ); 417 417 418 if ( $id == get_current_blog_id())418 if ( get_current_blog_id() == $id ) 419 419 return update_option( $option, $value ); 420 420 421 421 switch_to_blog( $id );