WordPress.org

Make WordPress Core

Changeset 41862


Ignore:
Timestamp:
10/14/2017 10:45:28 PM (3 years ago)
Author:
flixos90
Message:

Multisite: Return get_current_blog_id() value instead of hard-coded 1 in get_main_site_id() for non-multisite environments.

See #41936.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/functions.php

    r41861 r41862  
    44244424function get_main_site_id( $network_id = null ) {
    44254425    if ( ! is_multisite() ) {
    4426         return 1;
     4426        return get_current_blog_id();
    44274427    }
    44284428
Note: See TracChangeset for help on using the changeset viewer.