Changeset 31829 for trunk/src/wp-admin/includes/ms.php
- Timestamp:
- 03/19/2015 03:55:39 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/ms.php
r31517 r31829 805 805 <?php 806 806 if ( !$found ) { 807 $blog = array_shift( $all_blogs );807 $blog = reset( $all_blogs ); 808 808 update_user_meta( get_current_user_id(), 'primary_blog', $blog->userblog_id ); 809 809 } 810 810 } elseif ( count( $all_blogs ) == 1 ) { 811 $blog = array_shift( $all_blogs );811 $blog = reset( $all_blogs ); 812 812 echo $blog->domain; 813 813 if ( $primary_blog != $blog->userblog_id ) // Set the primary blog again if it's out of sync with blog list.
Note: See TracChangeset
for help on using the changeset viewer.