mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-04 04:34:31 +00:00
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
This commit is contained in:
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user