@@ 314-319 (lines=6) @@ | ||
311 | return true; |
|
312 | } |
|
313 | ||
314 | if ( false !== strpos( $page, 'post.php' ) ) { |
|
315 | $post = get_post( $_GET['post'] ); |
|
316 | if ( isset( $post ) && isset( $post->post_type ) && $this->is_post_type_gutenberg( $post->post_type ) ) { |
|
317 | return true; |
|
318 | } |
|
319 | } |
|
320 | ||
321 | if ( false !== strpos( $page, 'revision.php' ) ) { |
|
322 | $post = get_post( $_GET['revision'] ); |
|
@@ 321-327 (lines=7) @@ | ||
318 | } |
|
319 | } |
|
320 | ||
321 | if ( false !== strpos( $page, 'revision.php' ) ) { |
|
322 | $post = get_post( $_GET['revision'] ); |
|
323 | $parent = get_post( $post->post_parent ); |
|
324 | if ( isset( $parent ) && isset( $parent->post_type ) && $this->is_post_type_gutenberg( $parent->post_type ) ) { |
|
325 | return true; |
|
326 | } |
|
327 | } |
|
328 | ||
329 | return false; |
|
330 | } |