|
@@ 341-346 (lines=6) @@
|
| 338 |
|
return true; |
| 339 |
|
} |
| 340 |
|
|
| 341 |
|
if ( false !== strpos( $page, 'post.php' ) ) { |
| 342 |
|
$post = get_post( $_GET['post'] ); |
| 343 |
|
if ( isset( $post ) && isset( $post->post_type ) && $this->is_post_type_gutenberg( $post->post_type ) ) { |
| 344 |
|
return true; |
| 345 |
|
} |
| 346 |
|
} |
| 347 |
|
|
| 348 |
|
if ( false !== strpos( $page, 'revision.php' ) ) { |
| 349 |
|
$post = get_post( $_GET['revision'] ); |
|
@@ 348-354 (lines=7) @@
|
| 345 |
|
} |
| 346 |
|
} |
| 347 |
|
|
| 348 |
|
if ( false !== strpos( $page, 'revision.php' ) ) { |
| 349 |
|
$post = get_post( $_GET['revision'] ); |
| 350 |
|
$parent = get_post( $post->post_parent ); |
| 351 |
|
if ( isset( $parent ) && isset( $parent->post_type ) && $this->is_post_type_gutenberg( $parent->post_type ) ) { |
| 352 |
|
return true; |
| 353 |
|
} |
| 354 |
|
} |
| 355 |
|
|
| 356 |
|
return false; |
| 357 |
|
} |