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
This commit is contained in:
John Blackbourn 2021-06-03 00:22:58 +00:00
parent 8e5b3d5a97
commit 3024b85221
3 changed files with 9 additions and 5 deletions

View File

@ -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 );

View File

@ -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.

View File

@ -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(