Make WordPress Core

Changeset 51321 for trunk


Ignore:
Timestamp:
07/02/2021 09:51:54 PM (4 years ago)
Author:
jorbin
Message:

Remove unnecessary function_exists check in get_the_block_template_html

WordPress can be confident that WordPress functions exist.

I forgot this function existed.
And I thought that it would fatal, but it didn't
And it was so nice
So peaceful and quiet
I forgot this function existed
It isn't love, it isn't hate, it's just indifference

Introduced in [51003].

Props walbo.
Fixes #53578. See #53176.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/block-template.php

    r51298 r51321  
    171171    $content = do_blocks( $content );
    172172    $content = wptexturize( $content );
    173     if ( function_exists( 'wp_filter_content_tags' ) ) {
    174         $content = wp_filter_content_tags( $content );
    175     } else {
    176         $content = wp_make_content_images_responsive( $content );
    177     }
     173    $content = wp_filter_content_tags( $content );
    178174    $content = str_replace( ']]>', ']]>', $content );
    179175
Note: See TracChangeset for help on using the changeset viewer.