Skip to content
Snippets Groups Projects
Commit 03510ad3 authored by Erick Hitter's avatar Erick Hitter
Browse files

WP compat

parent 90d762ee
No related branches found
No related tags found
1 merge request!12Introduce native Gutenberg controls
Pipeline #3544 failed with stages
in 2 minutes and 25 seconds
......@@ -292,7 +292,10 @@ class WP_Revisions_Control {
*/
public function action_add_meta_boxes( $post_type, $post ) {
if (
use_block_editor_for_post( $post )
(
function_exists( 'use_block_editor_for_post' )
&& use_block_editor_for_post( $post )
)
|| ! post_type_supports( $post_type, 'revisions' )
|| 'auto-draft' === get_post_status()
|| count( wp_get_post_revisions( $post ) ) < 1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment