@@ 443-448 (lines=6) @@ | ||
440 | return true; |
|
441 | } |
|
442 | ||
443 | if ( false !== strpos( $page, 'post.php' ) ) { |
|
444 | $post = get_post( $_GET['post'] ); |
|
445 | if ( isset( $post ) && isset( $post->post_type ) && $this->is_post_type_gutenberg( $post->post_type ) ) { |
|
446 | return true; |
|
447 | } |
|
448 | } |
|
449 | ||
450 | if ( false !== strpos( $page, 'revision.php' ) ) { |
|
451 | $post = get_post( $_GET['revision'] ); |
|
@@ 450-456 (lines=7) @@ | ||
447 | } |
|
448 | } |
|
449 | ||
450 | if ( false !== strpos( $page, 'revision.php' ) ) { |
|
451 | $post = get_post( $_GET['revision'] ); |
|
452 | $parent = get_post( $post->post_parent ); |
|
453 | if ( isset( $parent ) && isset( $parent->post_type ) && $this->is_post_type_gutenberg( $parent->post_type ) ) { |
|
454 | return true; |
|
455 | } |
|
456 | } |
|
457 | ||
458 | return false; |
|
459 | } |