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