Make WordPress Core


Ignore:
Timestamp:
06/26/2016 01:22:36 PM (10 years ago)
Author:
jeremyfelt
Message:

Multisite: Change WP_Network id property to an integer.

For consistency and developer sanity.

Props flixos90.
Fixes #37050.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/multisite/network.php

    r37300 r37870  
    8989
    9090        /**
     91         * @ticket 37050
     92         */
     93        function test_wp_network_object_id_property_is_int() {
     94                $id = self::factory()->network->create();
     95
     96                $network = WP_Network::get_instance( $id );
     97
     98                $this->assertSame( (int) $id, $network->id );
     99        }
     100
     101        /**
    91102         * @ticket 22917
    92103         */
Note: See TracChangeset for help on using the changeset viewer.