- Timestamp:
- 07/23/2024 07:49:54 AM (10 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/rest-api/wpRestMenuItemsController.php
r58065 r58783 863 863 if ( post_type_supports( self::POST_TYPE, 'title' ) ) { 864 864 add_filter( 'protected_title_format', array( $this, 'protected_title_format' ) ); 865 add_filter( 'private_title_format', array( $this, 'protected_title_format' ) ); 865 866 $this->assertSame( $post->title, $data['title']['rendered'] ); 866 867 remove_filter( 'protected_title_format', array( $this, 'protected_title_format' ) ); 868 remove_filter( 'private_title_format', array( $this, 'protected_title_format' ) ); 867 869 if ( 'edit' === $context ) { 868 870 $this->assertSame( $post->title, $data['title']['raw'] );
Note: See TracChangeset
for help on using the changeset viewer.