@@ 349-354 (lines=6) @@ | ||
346 | return true; |
|
347 | } |
|
348 | ||
349 | if ( false !== strpos( $page, 'post.php' ) ) { |
|
350 | $post = get_post( $_GET['post'] ); |
|
351 | if ( isset( $post ) && isset( $post->post_type ) && $this->is_post_type_gutenberg( $post->post_type ) ) { |
|
352 | return true; |
|
353 | } |
|
354 | } |
|
355 | ||
356 | if ( false !== strpos( $page, 'revision.php' ) ) { |
|
357 | $post = get_post( $_GET['revision'] ); |
|
@@ 356-362 (lines=7) @@ | ||
353 | } |
|
354 | } |
|
355 | ||
356 | if ( false !== strpos( $page, 'revision.php' ) ) { |
|
357 | $post = get_post( $_GET['revision'] ); |
|
358 | $parent = get_post( $post->post_parent ); |
|
359 | if ( isset( $parent ) && isset( $parent->post_type ) && $this->is_post_type_gutenberg( $parent->post_type ) ) { |
|
360 | return true; |
|
361 | } |
|
362 | } |
|
363 | ||
364 | return false; |
|
365 | } |