WordPress.org

Make WordPress Core


Ignore:
Timestamp:
11/09/2018 09:43:29 AM (17 months 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-admin/includes/post.php

    r43882 r43883  
    18941894    if ( isset( $_GET['meta-box-loader'] ) ) {
    18951895        check_admin_referer( 'meta-box-loader' );
     1896        return false;
     1897    }
     1898
     1899    // The posts page can't be edited in the block editor.
     1900    if ( absint( get_option( 'page_for_posts' ) ) === $post->ID && empty( $post->post_content ) ) {
    18961901        return false;
    18971902    }
Note: See TracChangeset for help on using the changeset viewer.