|
@@ 401-406 (lines=6) @@
|
| 398 |
|
return true; |
| 399 |
|
} |
| 400 |
|
|
| 401 |
|
if ( false !== strpos( $page, 'post.php' ) ) { |
| 402 |
|
$post = get_post( $_GET['post'] ); |
| 403 |
|
if ( isset( $post ) && isset( $post->post_type ) && $this->is_post_type_gutenberg( $post->post_type ) ) { |
| 404 |
|
return true; |
| 405 |
|
} |
| 406 |
|
} |
| 407 |
|
|
| 408 |
|
if ( false !== strpos( $page, 'revision.php' ) ) { |
| 409 |
|
$post = get_post( $_GET['revision'] ); |
|
@@ 408-414 (lines=7) @@
|
| 405 |
|
} |
| 406 |
|
} |
| 407 |
|
|
| 408 |
|
if ( false !== strpos( $page, 'revision.php' ) ) { |
| 409 |
|
$post = get_post( $_GET['revision'] ); |
| 410 |
|
$parent = get_post( $post->post_parent ); |
| 411 |
|
if ( isset( $parent ) && isset( $parent->post_type ) && $this->is_post_type_gutenberg( $parent->post_type ) ) { |
| 412 |
|
return true; |
| 413 |
|
} |
| 414 |
|
} |
| 415 |
|
|
| 416 |
|
return false; |
| 417 |
|
// phpcs:enable |