Tests: Fix tests broken in PHP 5.x after [43879].
Props pento. Merges [43883] to trunk. See #45290. Built from https://develop.svn.wordpress.org/trunk@44242 git-svn-id: http://core.svn.wordpress.org/trunk@44072 1a063a9b-81f0-0310-95a4-ce76da25c4cd
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 );
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '5.1-alpha-44241';
|
||||
$wp_version = '5.1-alpha-44242';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
||||
Reference in New Issue
Block a user