Make WordPress Core

Ticket #37050: 37050.diff

File 37050.diff, 610 bytes (added by jeremyfelt, 9 years ago)
  • src/wp-includes/class-wp-network.php

     
    2828         * A numeric string, for compatibility reasons.
    2929         *
    3030         * @since 4.4.0
     31         * @since 4.6.0 Type changed from string to int.
    3132         * @access public
    32          * @var string
     33         * @var int
    3334         */
    3435        public $id;
    3536
     
    156157                                return $this->blog_id;
    157158                        case 'site_id':
    158159                                return (int) $this->blog_id;
     160                        case 'id';
     161                                return (int) $this->id;
    159162                }
    160163
    161164                return null;