mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-01 03:04:34 +00:00
Tests: Fix tests broken in PHP 5.x after [43879].
Props pento. Merges [43883] to trunk. See #45290. git-svn-id: https://develop.svn.wordpress.org/trunk@44242 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -222,7 +222,7 @@ function do_blocks( $content ) {
|
||||
*/
|
||||
function _restore_wpautop_hook( $content ) {
|
||||
global $wp_filter;
|
||||
$current_priority = $wp_filter['the_content']->current_priority();
|
||||
$current_priority = has_filter( 'the_content', '_restore_wpautop_hook' );
|
||||
|
||||
add_filter( 'the_content', 'wpautop', $current_priority - 1 );
|
||||
remove_filter( 'the_content', '_restore_wpautop_hook', $current_priority );
|
||||
|
||||
Reference in New Issue
Block a user