Make WordPress Core


Ignore:
Timestamp:
11/09/2018 09:43:29 AM (7 years ago)
Author:
pento
Message:

Tests: Fix tests broken in PHP 5.x after [43879].

See #45290.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/5.0/src/wp-includes/blocks.php

    r43879 r43883  
    223223function _restore_wpautop_hook( $content ) {
    224224    global $wp_filter;
    225     $current_priority = $wp_filter['the_content']->current_priority();
     225    $current_priority = has_filter( 'the_content', '_restore_wpautop_hook' );
    226226
    227227    add_filter( 'the_content', 'wpautop', $current_priority - 1 );
Note: See TracChangeset for help on using the changeset viewer.