Changeset 56561
- Timestamp:
- 09/13/2023 08:06:26 AM (18 months ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/formatting.php
r56560 r56561 3985 3985 /* 3986 3986 * Temporarily unhook do_blocks() since excerpt_remove_blocks( $text ) 3987 * hand els block rendering needed for excerpt.3987 * handles block rendering needed for excerpt. 3988 3988 */ 3989 3989 $filter_block_removed = remove_filter( 'the_content', 'do_blocks', 9 ); -
trunk/tests/phpunit/tests/formatting/wpTrimExcerpt.php
r56560 r56561 154 154 * 155 155 * @ticket 58682 156 *157 * @covers ::wp_trim_excerpt158 156 */ 159 157 public function test_wp_trim_excerpt_check_if_block_renders() { … … 173 171 * 174 172 * @ticket 58682 175 *176 * @covers ::wp_trim_excerpt177 173 */ 178 174 public function test_wp_trim_excerpt_unhooks_do_blocks() { … … 201 197 * 202 198 * @ticket 58682 203 *204 * @covers ::wp_trim_excerpt205 199 */ 206 200 public function test_wp_trim_excerpt_should_not_permanently_unhook_do_blocks() { … … 216 210 * 217 211 * @ticket 58682 218 *219 * @covers ::wp_trim_excerpt220 212 */ 221 213 public function test_wp_trim_excerpt_does_not_restore_do_blocks_if_previously_unhooked() {
Note: See TracChangeset
for help on using the changeset viewer.