Changeset 16673 for trunk/wp-includes/ms-blogs.php
- Timestamp:
- 12/01/2010 10:12:09 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/ms-blogs.php
r16597 r16673 301 301 302 302 if ( isset($details[ 'public' ]) ) 303 update_blog_option( $blog_id, 'blog_public', $details[ 'public' ] , false);303 update_blog_option( $blog_id, 'blog_public', $details[ 'public' ] ); 304 304 305 305 refresh_blog_details($blog_id); … … 422 422 * @param string $key The option key 423 423 * @param mixed $value The option value 424 * @param bool $refresh Whether to refresh blog details or not 425 */ 426 function update_blog_option( $id, $key, $value, $refresh = true ) { 424 */ 425 function update_blog_option( $id, $key, $value, $deprecated = null ) { 427 426 $id = (int) $id; 427 428 if ( null !== $deprecated ) 429 _deprecated_argument( __FUNCTION__, '3.1.0' ); 428 430 429 431 switch_to_blog($id); … … 431 433 restore_current_blog(); 432 434 433 if ( $refresh == true )434 refresh_blog_details( $id ); 435 refresh_blog_details( $id ); 436 435 437 wp_cache_set( $id."-".$key."-blog_option", $value, 'site-options'); 436 438 } … … 615 617 * @param string $pref A field name 616 618 * @param string $value Value for $pref 617 * @param bool $refresh Whether to refresh the blog details cache. Default is true.618 619 * @return string $value 619 620 */ 620 function update_blog_status( $blog_id, $pref, $value, $ refresh = true) {621 function update_blog_status( $blog_id, $pref, $value, $deprecated = null ) { 621 622 global $wpdb; 623 624 if ( null !== $deprecated ) 625 _deprecated_argument( __FUNCTION__, '3.1.0' ); 622 626 623 627 if ( !in_array( $pref, array( 'site_id', 'domain', 'path', 'registered', 'last_updated', 'public', 'archived', 'mature', 'spam', 'deleted', 'lang_id') ) ) … … 626 630 $wpdb->update( $wpdb->blogs, array($pref => $value, 'last_updated' => current_time('mysql', true)), array('blog_id' => $blog_id) ); 627 631 628 if ( $refresh ) 629 refresh_blog_details($blog_id); 632 refresh_blog_details($blog_id); 630 633 631 634 if ( 'spam' == $pref )
Note: See TracChangeset
for help on using the changeset viewer.