mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-12 13:44:21 +01:00
Tests: Fix tests broken in PHP 5.x after [43879].
See #45290. Built from https://develop.svn.wordpress.org/branches/5.0@43883 git-svn-id: http://core.svn.wordpress.org/branches/5.0@43712 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
cd22d51724
commit
fdf428e44f
@ -1896,6 +1896,11 @@ function use_block_editor_for_post( $post ) {
|
||||
return false;
|
||||
}
|
||||
|
||||
// The posts page can't be edited in the block editor.
|
||||
if ( absint( get_option( 'page_for_posts' ) ) === $post->ID && empty( $post->post_content ) ) {
|
||||
return false;
|
||||
}
|
||||
|
||||
$use_block_editor = use_block_editor_for_post_type( $post->post_type );
|
||||
|
||||
/**
|
||||
|
@ -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 );
|
||||
|
@ -4,7 +4,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '5.0-beta3-43882';
|
||||
$wp_version = '5.0-beta3-43883';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
Reference in New Issue
Block a user