@@ 457-462 (lines=6) @@ | ||
454 | return true; |
|
455 | } |
|
456 | ||
457 | if ( false !== strpos( $page, 'post.php' ) ) { |
|
458 | $post = get_post( $_GET['post'] ); |
|
459 | if ( isset( $post ) && isset( $post->post_type ) && $this->is_post_type_gutenberg( $post->post_type ) ) { |
|
460 | return true; |
|
461 | } |
|
462 | } |
|
463 | ||
464 | if ( false !== strpos( $page, 'revision.php' ) ) { |
|
465 | $post = get_post( $_GET['revision'] ); |
|
@@ 464-470 (lines=7) @@ | ||
461 | } |
|
462 | } |
|
463 | ||
464 | if ( false !== strpos( $page, 'revision.php' ) ) { |
|
465 | $post = get_post( $_GET['revision'] ); |
|
466 | $parent = get_post( $post->post_parent ); |
|
467 | if ( isset( $parent ) && isset( $parent->post_type ) && $this->is_post_type_gutenberg( $parent->post_type ) ) { |
|
468 | return true; |
|
469 | } |
|
470 | } |
|
471 | ||
472 | return false; |
|
473 | } |