Make WordPress Core


Ignore:
Timestamp:
10/10/2016 06:37:02 AM (9 years ago)
Author:
pento
Message:

General: Restore usage of $wpdb, instead of $this->db.

Hiding the $wpdb global behind a property decreases the readability of the code, as well as causing irrelevant output when dumping an object.

Reverts [38275], [38278], [38279], [38280], [38387].
See #37699.

File:
1 edited

Legend:

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

    r38398 r38768  
    182182
    183183        foreach ( (array) $user as $key => $value ) {
    184             if ( $value instanceof wpdb ) {
    185                 continue;
    186             }
    187184            $this->assertEquals( $value, $user->$key );
    188185        }
Note: See TracChangeset for help on using the changeset viewer.