@@ 426-431 (lines=6) @@ | ||
423 | return true; |
|
424 | } |
|
425 | ||
426 | if ( false !== strpos( $page, 'post.php' ) ) { |
|
427 | $post = get_post( $_GET['post'] ); |
|
428 | if ( isset( $post ) && isset( $post->post_type ) && $this->is_post_type_gutenberg( $post->post_type ) ) { |
|
429 | return true; |
|
430 | } |
|
431 | } |
|
432 | ||
433 | if ( false !== strpos( $page, 'revision.php' ) ) { |
|
434 | $post = get_post( $_GET['revision'] ); |
|
@@ 433-439 (lines=7) @@ | ||
430 | } |
|
431 | } |
|
432 | ||
433 | if ( false !== strpos( $page, 'revision.php' ) ) { |
|
434 | $post = get_post( $_GET['revision'] ); |
|
435 | $parent = get_post( $post->post_parent ); |
|
436 | if ( isset( $parent ) && isset( $parent->post_type ) && $this->is_post_type_gutenberg( $parent->post_type ) ) { |
|
437 | return true; |
|
438 | } |
|
439 | } |
|
440 | ||
441 | return false; |
|
442 | // phpcs:enable |