diff options
-rw-r--r-- | src/js/media/views/button.js | 2 | ||||
-rw-r--r-- | src/wp-includes/script-loader.php | 4 |
2 files changed, 1 insertions, 5 deletions
diff --git a/src/js/media/views/button.js b/src/js/media/views/button.js index ae7ff7852f..988c95ccb1 100644 --- a/src/js/media/views/button.js +++ b/src/js/media/views/button.js @@ -33,7 +33,7 @@ var Button = wp.media.View.extend(/** @lends wp.media.view.Button.prototype */{ this.model = new Backbone.Model( this.defaults ); // If any of the `options` have a key from `defaults`, apply its - // value to the `model` and remove it from the `options object. + // value to the `model` and remove it from the `options` object. _.each( this.defaults, function( def, key ) { var value = this.options[ key ]; if ( _.isUndefined( value ) ) { diff --git a/src/wp-includes/script-loader.php b/src/wp-includes/script-loader.php index fa4a038754..c82c620ffe 100644 --- a/src/wp-includes/script-loader.php +++ b/src/wp-includes/script-loader.php @@ -2679,12 +2679,8 @@ function wp_should_load_block_assets_on_demand() { * context (only enqueuing editor scripts while in context of the editor). * * @since 5.0.0 - * - * @global WP_Screen $current_screen WordPress current screen object. */ function wp_enqueue_registered_block_scripts_and_styles() { - global $current_screen; - if ( wp_should_load_block_assets_on_demand() ) { return; } |