Changeset 38814 for trunk/src/wp-includes/load.php
- Timestamp:
- 10/19/2016 04:46:14 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/load.php
r38636 r38814 815 815 * @since 4.6.0 816 816 * 817 * @global WP_Network $current_site The current network.818 *819 817 * @return int The ID of the current network. 820 818 */ … … 824 822 } 825 823 826 $current_ site = get_current_site();827 828 if ( ! isset( $current_ site->id ) ) {824 $current_network = get_network(); 825 826 if ( ! isset( $current_network->id ) ) { 829 827 return get_main_network_id(); 830 828 } 831 829 832 return absint( $current_ site->id );830 return absint( $current_network->id ); 833 831 } 834 832
Note: See TracChangeset
for help on using the changeset viewer.