Skip to content

Commit fc67f03

Browse files
committed
Reduce styles_inline_size_limit to 40K down from 50K
1 parent bafd51b commit fc67f03

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/wp-includes/script-loader.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3055,14 +3055,14 @@ function wp_print_inline_script_tag( $data, $attributes = array() ) {
30553055
function wp_maybe_inline_styles() {
30563056
global $wp_styles;
30573057

3058-
$total_inline_limit = 50000;
3058+
$total_inline_limit = 40000;
30593059
/**
30603060
* The maximum size of inlined styles in bytes.
30613061
*
30623062
* @since 5.8.0
3063-
* @since 6.9.0 The default limit increased from 20K to 50K.
3063+
* @since 6.9.0 The default limit increased from 20K to 40K.
30643064
*
3065-
* @param int $total_inline_limit The file-size threshold, in bytes. Default 50000.
3065+
* @param int $total_inline_limit The file-size threshold, in bytes. Default 40000.
30663066
*/
30673067
$total_inline_limit = apply_filters( 'styles_inline_size_limit', $total_inline_limit );
30683068

0 commit comments

Comments
 (0)