PluginProbe
BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot / 3.8.9
BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot v3.8.9
4.9.2 4.9.1 4.9.0 4.8.2 4.8.1 4.8.0 4.7.0 4.6.2 4.6.1 4.6.0 4.5.6 4.5.5 4.5.4 4.5.3 4.5.2 4.5.1 4.5.0 4.4.1 4.4.0 3.3.4 3.4.0 3.4.1 3.4.2 3.5.0 3.5.1 All 200 releases
← All changes | includes/Editors/BlockEditor/StyleHandler.php +1 -3 4.4.13.8.9 View file →
@@ -72,16 +72,14 @@
72 72 'wp-editor',
73 73 'wp-block-editor'
74 74 ];
75 75
76 - $current_screen = get_current_screen();
77 -
78 76 $_style_handler_object = [
79 77 'sth_nonce' => wp_create_nonce( 'betterdocs_style_handler_nonce' ),
80 78 'editor_type' => 'edit-site'
81 79 ];
82 80
83 - if ( $hook == 'post-new.php' && $current_screen->is_block_editor || $hook == 'post.php' && $current_screen->is_block_editor ) {
81 + if ( $hook == 'post-new.php' || $hook == 'post.php' ) {
84 82 $_style_handler_deps[] = 'wp-edit-post';
85 83 $_style_handler_object['editor_type'] = 'edit-post';
86 84 } elseif ( $hook == 'site-editor.php' ) {
87 85 $_style_handler_deps[] = 'wp-edit-site';