Skip to content

Commit

Permalink
get_post() cannot return a WP_Error
Browse files Browse the repository at this point in the history
  • Loading branch information
tyxla committed Jul 26, 2023
1 parent b10ca33 commit 6bb68ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/experimental/disable-tinymce.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ function gutenberg_post_being_edited_requires_classic_block() {

// Bail if for some reason the post isn't found.
$current_post = get_post( absint( $_GET['post'] ) );
if ( ! $current_post || is_wp_error( $current_post ) ) {
if ( ! $current_post ) {
return false;
}

Expand Down

0 comments on commit 6bb68ee

Please sign in to comment.