WordPress.org

Make WordPress Core


Ignore:
Timestamp:
09/24/2015 12:48:23 AM (4 years ago)
Author:
wonderboymusic
Message:

Users: in WP_User::__unset(), don't reset the deprecated prop id to ID. Still throw the deprecated notice.

Update unit test.

Fixes #20043.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/user.php

    r34380 r34466  
    200200        $this->assertNotEmpty( $user->ID );
    201201        unset( $user->ID );
    202         $this->assertEmpty( $user->ID );
     202        $this->assertNotEmpty( $user->ID );
    203203    }
    204204
Note: See TracChangeset for help on using the changeset viewer.