Changeset 58783 for trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-global-styles-controller.php
- Timestamp:
- 07/23/2024 07:49:54 AM (10 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-global-styles-controller.php
r58466 r58783 328 328 if ( rest_is_field_included( 'title.rendered', $fields ) ) { 329 329 add_filter( 'protected_title_format', array( $this, 'protected_title_format' ) ); 330 add_filter( 'private_title_format', array( $this, 'protected_title_format' ) ); 330 331 331 332 $data['title']['rendered'] = get_the_title( $post->ID ); 332 333 333 334 remove_filter( 'protected_title_format', array( $this, 'protected_title_format' ) ); 335 remove_filter( 'private_title_format', array( $this, 'protected_title_format' ) ); 334 336 } 335 337
Note: See TracChangeset
for help on using the changeset viewer.