Skip to content

Commit ad0a555

Browse files
committed
Editor: Correct some docblocks added in [50836].
See #50328, #52620. git-svn-id: https://develop.svn.wordpress.org/trunk@51065 602fd350-edb4-49c9-b593-d223f7449a82
1 parent e37b85f commit ad0a555

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

src/wp-includes/script-loader.php

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2323,20 +2323,20 @@ function wp_should_load_block_editor_scripts_and_styles() {
23232323
*
23242324
* @since 5.8.0
23252325
*
2326-
* @return bool Whether separate assets will be loaded or not.
2326+
* @return bool Whether separate assets will be loaded.
23272327
*/
23282328
function wp_should_load_separate_core_block_assets() {
23292329
if ( is_admin() || is_feed() || ( defined( 'REST_REQUEST' ) && REST_REQUEST ) ) {
23302330
return false;
23312331
}
23322332

23332333
/**
2334-
* Filters the flag that decides whether or not separate scripts and styles
2335-
* will be loaded for core blocks on-render or not.
2334+
* Filters the flag that decides whether separate scripts and styles
2335+
* will be loaded for core blocks on-render.
23362336
*
23372337
* @since 5.8.0
23382338
*
2339-
* @param bool $load_separate_assets Whether separate assets will be loaded or not.
2339+
* @param bool $load_separate_assets Whether separate assets will be loaded.
23402340
* Default false.
23412341
*/
23422342
return apply_filters( 'should_load_separate_core_block_assets', false );
@@ -2595,6 +2595,8 @@ function wp_maybe_inline_styles() {
25952595
/**
25962596
* The maximum size of inlined styles in bytes.
25972597
*
2598+
* @since 5.8.0
2599+
*
25982600
* @param int $total_inline_limit The file-size threshold, in bytes. Defaults to 20000.
25992601
*/
26002602
$total_inline_limit = apply_filters( 'styles_inline_size_limit', $total_inline_limit );

src/wp-includes/widgets.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1824,6 +1824,8 @@ function wp_use_widgets_block_editor() {
18241824
/**
18251825
* Filters whether or not to use the block editor to manage widgets.
18261826
*
1827+
* @since 5.8.0
1828+
*
18271829
* @param boolean $use_widgets_block_editor Whether or not to use the block editor to manage widgets.
18281830
*/
18291831
return apply_filters(

0 commit comments

Comments
 (0)