We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e690755 + 7ece00f commit 15c5ee0Copy full SHA for 15c5ee0
core/Loader/Loader.php
@@ -140,7 +140,7 @@ public function enqueue_media_browser() {
140
* @return string
141
*/
142
protected function get_assets_context() {
143
- return wp_script_is( 'wp-element' ) ? 'gutenberg' : 'classic';
+ return get_current_screen()->is_block_editor() ? 'gutenberg' : 'classic';
144
}
145
146
/**
0 commit comments