Make WordPress Core


Ignore:
Timestamp:
08/12/2017 12:47:38 PM (7 years ago)
Author:
flixos90
Message:

Multisite: Rename internal $site_id variables referencing networks to $network_id.

This change improves code clarity by using the current naming conventions for networks.

Props lemacarl.
Fixes #41510.

File:
1 edited

Legend:

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

    r41162 r41241  
    894894     *
    895895     * @param int $blog_id
    896      * @param int $site_id Optional.
     896     * @param int $network_id Optional.
    897897     * @return int previous blog id
    898898     */
    899     public function set_blog_id( $blog_id, $site_id = 0 ) {
    900         if ( ! empty( $site_id ) )
    901             $this->siteid = $site_id;
     899    public function set_blog_id( $blog_id, $network_id = 0 ) {
     900        if ( ! empty( $network_id ) ) {
     901            $this->siteid = $network_id;
     902        }
    902903
    903904        $old_blog_id  = $this->blogid;
Note: See TracChangeset for help on using the changeset viewer.