|
@@ 491-496 (lines=6) @@
|
| 488 |
|
return true; |
| 489 |
|
} |
| 490 |
|
|
| 491 |
|
if ( false !== strpos( $page, 'post.php' ) ) { |
| 492 |
|
$post = get_post( $_GET['post'] ); |
| 493 |
|
if ( isset( $post ) && isset( $post->post_type ) && $this->is_post_type_gutenberg( $post->post_type ) ) { |
| 494 |
|
return true; |
| 495 |
|
} |
| 496 |
|
} |
| 497 |
|
|
| 498 |
|
if ( false !== strpos( $page, 'revision.php' ) ) { |
| 499 |
|
$post = get_post( $_GET['revision'] ); |
|
@@ 498-504 (lines=7) @@
|
| 495 |
|
} |
| 496 |
|
} |
| 497 |
|
|
| 498 |
|
if ( false !== strpos( $page, 'revision.php' ) ) { |
| 499 |
|
$post = get_post( $_GET['revision'] ); |
| 500 |
|
$parent = get_post( $post->post_parent ); |
| 501 |
|
if ( isset( $parent ) && isset( $parent->post_type ) && $this->is_post_type_gutenberg( $parent->post_type ) ) { |
| 502 |
|
return true; |
| 503 |
|
} |
| 504 |
|
} |
| 505 |
|
|
| 506 |
|
return false; |
| 507 |
|
} |