From 3024b85221f84426d0565abfe08d40cffc676916 Mon Sep 17 00:00:00 2001 From: John Blackbourn Date: Thu, 3 Jun 2021 00:22:58 +0000 Subject: [PATCH] Editor: Correct some docblocks added in [50836]. See #50328, #52620. Built from https://develop.svn.wordpress.org/trunk@51065 git-svn-id: http://core.svn.wordpress.org/trunk@50674 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/script-loader.php | 10 ++++++---- wp-includes/version.php | 2 +- wp-includes/widgets.php | 2 ++ 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/wp-includes/script-loader.php b/wp-includes/script-loader.php index 8eaa817d3a..a96ec3793f 100644 --- a/wp-includes/script-loader.php +++ b/wp-includes/script-loader.php @@ -2323,7 +2323,7 @@ function wp_should_load_block_editor_scripts_and_styles() { * * @since 5.8.0 * - * @return bool Whether separate assets will be loaded or not. + * @return bool Whether separate assets will be loaded. */ function wp_should_load_separate_core_block_assets() { if ( is_admin() || is_feed() || ( defined( 'REST_REQUEST' ) && REST_REQUEST ) ) { @@ -2331,12 +2331,12 @@ function wp_should_load_separate_core_block_assets() { } /** - * Filters the flag that decides whether or not separate scripts and styles - * will be loaded for core blocks on-render or not. + * Filters the flag that decides whether separate scripts and styles + * will be loaded for core blocks on-render. * * @since 5.8.0 * - * @param bool $load_separate_assets Whether separate assets will be loaded or not. + * @param bool $load_separate_assets Whether separate assets will be loaded. * Default false. */ return apply_filters( 'should_load_separate_core_block_assets', false ); @@ -2595,6 +2595,8 @@ function wp_maybe_inline_styles() { /** * The maximum size of inlined styles in bytes. * + * @since 5.8.0 + * * @param int $total_inline_limit The file-size threshold, in bytes. Defaults to 20000. */ $total_inline_limit = apply_filters( 'styles_inline_size_limit', $total_inline_limit ); diff --git a/wp-includes/version.php b/wp-includes/version.php index f0a4cd5aad..dbd9dd26f0 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.8-alpha-51064'; +$wp_version = '5.8-alpha-51065'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. diff --git a/wp-includes/widgets.php b/wp-includes/widgets.php index ba6aea7a6b..9aca45163d 100644 --- a/wp-includes/widgets.php +++ b/wp-includes/widgets.php @@ -1824,6 +1824,8 @@ function wp_use_widgets_block_editor() { /** * Filters whether or not to use the block editor to manage widgets. * + * @since 5.8.0 + * * @param boolean $use_widgets_block_editor Whether or not to use the block editor to manage widgets. */ return apply_filters(