Make WordPress Core

Ticket #62035: class-wp-network.php.diff

File class-wp-network.php.diff, 1.2 KB (added by scottculverhouse, 14 months ago)

Diff adding debugging to class-wp-network.php

  • src/wp-includes/class-wp-network.php

    diff --git a/src/wp-includes/class-wp-network.php b/src/wp-includes/class-wp-network.php
    index d835765c6b..02136d7618 100644
    a b class WP_Network { 
    149149         * @return mixed Value of the property. Null if not available.
    150150         */
    151151        public function __get( $key ) {
     152var_dump('__get');
     153var_dump($key);
     154
    152155                switch ( $key ) {
    153156                        case 'id':
    154157                                return (int) $this->id;
    class WP_Network { 
    172175         * @return bool Whether the property is set.
    173176         */
    174177        public function __isset( $key ) {
     178var_dump('__isset');
     179var_dump($key);
     180
    175181                switch ( $key ) {
    176182                        case 'id':
    177183                        case 'blog_id':
    class WP_Network { 
    193199         * @param mixed  $value Value to assign to the property.
    194200         */
    195201        public function __set( $key, $value ) {
     202var_dump('__set');
     203var_dump($key);
    196204                switch ( $key ) {
    197205                        case 'id':
    198206                                $this->id = (int) $value;
    class WP_Network { 
    217225         * @return int The ID of the main site.
    218226         */
    219227        private function get_main_site_id() {
     228var_dump('top of get_main_site_id method');
     229var_dump($this->id);
     230//debug_print_backtrace();
     231die('stopped');
    220232                /**
    221233                 * Filters the main site ID.
    222234                 *