Changeset 45607 for trunk/tests/phpunit/tests/xmlrpc/wp/getPages.php
- Timestamp:
- 07/08/2019 12:55:20 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/xmlrpc/wp/getPages.php
r42343 r45607 56 56 57 57 function remove_editor_edit_page_cap( $caps, $cap, $user_id, $args ) { 58 if ( in_array( $cap, array( 'edit_page', 'edit_others_pages' ) ) ) {59 if ( $user_id == self::$editor_id && $args[0]== self::$post_id ) {58 if ( in_array( $cap, array( 'edit_page', 'edit_others_pages' ), true ) ) { 59 if ( $user_id === self::$editor_id && $args[0] === self::$post_id ) { 60 60 return array( false ); 61 61 } … … 79 79 $this->assertNotIXRError( $result ); 80 80 81 if ( $result['page_id'] == self::$post_id ) {81 if ( $result['page_id'] === self::$post_id ) { 82 82 $found_incapable = true; 83 83 break;
Note: See TracChangeset
for help on using the changeset viewer.