WordPress.org

Make WordPress Core

Changeset 51325


Ignore:
Timestamp:
07/03/2021 03:14:23 PM (3 months ago)
Author:
jorbin
Message:

Remove unnecessary function_exists check in get_the_block_template_html

Merges [51321] to the 5.8 branch. Reviewed by SergeyBiryukov.

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.

Location:
branches/5.8
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/5.8

  • branches/5.8/src/wp-includes/block-template.php

    r51221 r51325  
    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.