- Timestamp:
- 07/23/2024 07:49:54 AM (10 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/includes/testcase-rest-post-type-controller.php
r57603 r58783 108 108 if ( post_type_supports( $post->post_type, 'title' ) ) { 109 109 add_filter( 'protected_title_format', array( $this, 'protected_title_format' ) ); 110 add_filter( 'private_title_format', array( $this, 'protected_title_format' ) ); 110 111 $this->assertSame( get_the_title( $post->ID ), $data['title']['rendered'] ); 111 112 remove_filter( 'protected_title_format', array( $this, 'protected_title_format' ) ); 113 remove_filter( 'private_title_format', array( $this, 'protected_title_format' ) ); 112 114 if ( 'edit' === $context ) { 113 115 $this->assertSame( $post->post_title, $data['title']['raw'] );
Note: See TracChangeset
for help on using the changeset viewer.