@@ 391-396 (lines=6) @@ | ||
388 | return true; |
|
389 | } |
|
390 | ||
391 | if ( false !== strpos( $page, 'post.php' ) ) { |
|
392 | $post = get_post( $_GET['post'] ); |
|
393 | if ( isset( $post ) && isset( $post->post_type ) && $this->is_post_type_gutenberg( $post->post_type ) ) { |
|
394 | return true; |
|
395 | } |
|
396 | } |
|
397 | ||
398 | if ( false !== strpos( $page, 'revision.php' ) ) { |
|
399 | $post = get_post( $_GET['revision'] ); |
|
@@ 398-404 (lines=7) @@ | ||
395 | } |
|
396 | } |
|
397 | ||
398 | if ( false !== strpos( $page, 'revision.php' ) ) { |
|
399 | $post = get_post( $_GET['revision'] ); |
|
400 | $parent = get_post( $post->post_parent ); |
|
401 | if ( isset( $parent ) && isset( $parent->post_type ) && $this->is_post_type_gutenberg( $parent->post_type ) ) { |
|
402 | return true; |
|
403 | } |
|
404 | } |
|
405 | ||
406 | return false; |
|
407 | } |