|
@@ 360-365 (lines=6) @@
|
| 357 |
|
return true; |
| 358 |
|
} |
| 359 |
|
|
| 360 |
|
if ( false !== strpos( $page, 'post.php' ) ) { |
| 361 |
|
$post = get_post( $_GET['post'] ); |
| 362 |
|
if ( isset( $post ) && isset( $post->post_type ) && $this->is_post_type_gutenberg( $post->post_type ) ) { |
| 363 |
|
return true; |
| 364 |
|
} |
| 365 |
|
} |
| 366 |
|
|
| 367 |
|
if ( false !== strpos( $page, 'revision.php' ) ) { |
| 368 |
|
$post = get_post( $_GET['revision'] ); |
|
@@ 367-373 (lines=7) @@
|
| 364 |
|
} |
| 365 |
|
} |
| 366 |
|
|
| 367 |
|
if ( false !== strpos( $page, 'revision.php' ) ) { |
| 368 |
|
$post = get_post( $_GET['revision'] ); |
| 369 |
|
$parent = get_post( $post->post_parent ); |
| 370 |
|
if ( isset( $parent ) && isset( $parent->post_type ) && $this->is_post_type_gutenberg( $parent->post_type ) ) { |
| 371 |
|
return true; |
| 372 |
|
} |
| 373 |
|
} |
| 374 |
|
|
| 375 |
|
return false; |
| 376 |
|
} |