Before

…lines 1–3006 unchanged (3006 lines)
3007 continue;
3008 }
3009 $src = $wp_styles->registered[ $handle ]->src;
3010 $path = $wp_styles->get_data( $handle, 'path' );
3011 if ( $path && $src ) {
3012 $size = wp_filesize( $path );
3013 if ( ! $size ) {
3014 continue;
3015 }
3016 $styles[] = array(
3017 'handle' => $handle,
3018 'src' => $src,
3019 'path' => $path,
3020 'size' => $size,
…lines 3021–3044 unchanged (24 lines)
3045 // Size check. Since styles are ordered by size, we can break the loop.
3046 if ( $total_inline_size + $style['size'] > $total_inline_limit ) {
3047 break;
3048 }
3049
3050 // Get the styles if we don't already have them.
3051 $style['css'] = file_get_contents( $style['path'] );
3052
3053 /*
3054 * Check if the style contains relative URLs that need to be modified.
3055 * URLs relative to the stylesheet's path should be converted to relative to the site's root.
3056 */
3057 $style['css'] = _wp_normalize_relative_css_links( $style['css'], $style['src'] );
…lines 3058–3945 unchanged (888 lines)

After

…lines 1–3006 unchanged (3006 lines)
3007 continue;
3008 }
3009 $src = $wp_styles->registered[ $handle ]->src;
3010 $path = $wp_styles->get_data( $handle, 'path' );
3011 if ( $path && $src ) {
3012 $size = wp_filesize( $path );
3013 if ( 0 === $size && ! file_exists( $path ) ) {
3014 _doing_it_wrong(
3015 __FUNCTION__,
3016 sprintf(
3017 /* translators: 1: 'path', 2: filesystem path, 3: style handle */
3018 __( 'Unable to read the "%1$s" key with value "%2$s" for stylesheet "%3$s".' ),
3019 'path',
3020 esc_html( $path ),
3021 esc_html( $handle )
3022 ),
3023 '7.0.0'
3024 );
3025 continue;
3026 }
3027 $styles[] = array(
3028 'handle' => $handle,
3029 'src' => $src,
3030 'path' => $path,
…lines 3031–3055 unchanged (25 lines)
3056 // Size check. Since styles are ordered by size, we can break the loop.
3057 if ( $total_inline_size + $style['size'] > $total_inline_limit ) {
3058 break;
3059 }
3060
3061 // Get the styles if we don't already have them.
3062 if ( ! is_readable( $style['path'] ) ) {
3063 _doing_it_wrong(
3064 __FUNCTION__,
3065 sprintf(
3066 /* translators: 1: 'path', 2: filesystem path, 3: style handle */
3067 __( 'Unable to read the "%1$s" key with value "%2$s" for stylesheet "%3$s".' ),
3068 'path',
3069 esc_html( $style['path'] ),
3070 esc_html( $style['handle'] )
3071 ),
3072 '7.0.0'
3073 );
3074 continue;
3075 }
3076 $style['css'] = file_get_contents( $style['path'] );
3077
3078 /*
3079 * Check if the style contains relative URLs that need to be modified.
3080 * URLs relative to the stylesheet's path should be converted to relative to the site's root.
3081 */
…lines 3082–3970 unchanged (889 lines)

Before

program
php_tag "<?php"
comment "/**\n * WordPress scripts and styles default loader.\n *\n * Se"...
comment "/** WordPress Dependency Class */"
expression_statement
require_expression
require "require"
binary_expression
binary_expression
name "ABSPATH"
. "."
name "WPINC"
. "."
string
' "'"
string_content "/class-wp-dependency.php"
' "'"
; ";"
comment "/** WordPress Dependencies Class */"
expression_statement
require_expression
require "require"
binary_expression
binary_expression
name "ABSPATH"
. "."
name "WPINC"
. "."
string
' "'"
string_content "/class-wp-dependencies.php"
' "'"
; ";"
comment "/** WordPress Scripts Class */"
expression_statement
require_expression
require "require"
binary_expression
binary_expression
name "ABSPATH"
. "."
name "WPINC"
. "."
string
' "'"
string_content "/class-wp-scripts.php"
' "'"
; ";"
comment "/** WordPress Scripts Functions */"
expression_statement
require_expression
require "require"
binary_expression
binary_expression
name "ABSPATH"
. "."
name "WPINC"
. "."
string
' "'"
string_content "/functions.wp-scripts.php"
' "'"
; ";"
comment "/** WordPress Styles Class */"
expression_statement
require_expression
require "require"
binary_expression
binary_expression
name "ABSPATH"
. "."
name "WPINC"
. "."
string
' "'"
string_content "/class-wp-styles.php"
' "'"
; ";"
comment "/** WordPress Styles Functions */"
expression_statement
require_expression
require "require"
binary_expression
binary_expression
name "ABSPATH"
. "."
name "WPINC"
. "."
string
' "'"
string_content "/functions.wp-styles.php"
' "'"
; ";"
comment "/**\n * Registers TinyMCE scripts.\n *\n * @since 5.0.0\n *\n * @"...
function_definition (+305 nodes collapsed)
comment "/**\n * Registers all the WordPress vendor scripts that are i"...
function_definition (+786 nodes collapsed)
comment "/**\n * Returns contents of an inline script used in appendin"...
function_definition (+350 nodes collapsed)
comment "/**\n * Registers development scripts that integrate with `@w"...
function_definition (+253 nodes collapsed)
comment "/**\n * Registers all the WordPress packages scripts that are"...
function_definition (+505 nodes collapsed)
comment "/**\n * Adds inline scripts required for the WordPress JavaSc"...
function_definition (+1282 nodes collapsed)
comment "/**\n * Adds inline scripts required for the TinyMCE in the b"...
function_definition (+1284 nodes collapsed)
comment "/**\n * Registers all the WordPress packages scripts.\n *\n * @"...
function_definition (+86 nodes collapsed)
comment "/**\n * Returns the suffix that can be used for the scripts.\n"...
function_definition (+228 nodes collapsed)
comment "/**\n * Registers all WordPress scripts.\n *\n * Localizes some"...
function_definition (+14844 nodes collapsed)
comment "/**\n * Assigns default styles to $styles object.\n *\n * Nothi"...
function_definition (+3542 nodes collapsed)
comment "/**\n * Reorders JavaScript scripts array to place prototype "...
function_definition (+170 nodes collapsed)
comment "/**\n * Loads localized data on print rather than initializat"...
function_definition (+209 nodes collapsed)
comment "/**\n * Localizes the jQuery UI datepicker.\n *\n * @since 4.6."...
function_definition (+462 nodes collapsed)
comment "/**\n * Localizes community events data that needs to be pass"...
function_definition (+290 nodes collapsed)
comment "/**\n * Administration Screen CSS for changing the styles.\n *"...
function_definition (+304 nodes collapsed)
comment "/**\n * Prints the script queue in the HTML head on admin pag"...
function_definition (+140 nodes collapsed)
comment "/**\n * Prints the scripts that were queued for the footer or"...
function_definition (+126 nodes collapsed)
comment "/**\n * Prints scripts (internal use only)\n *\n * @since 2.8.0"...
function_definition (+356 nodes collapsed)
comment "/**\n * Prints the script queue in the HTML head on the front"...
function_definition (+83 nodes collapsed)
comment "/**\n * Private, for use in *_footer_scripts hooks\n *\n * In c"...
function_definition (+23 nodes collapsed)
comment "/**\n * Hooks to print the scripts and styles in the footer.\n"...
function_definition (+22 nodes collapsed)
comment "/**\n * Wrapper for do_action( 'wp_enqueue_scripts' ).\n *\n * "...
function_definition (+22 nodes collapsed)
comment "/**\n * Prints the styles queue in the HTML head on admin pag"...
function_definition (+109 nodes collapsed)
comment "/**\n * Prints the styles that were queued too late for the H"...
function_definition (+121 nodes collapsed)
comment "/**\n * Prints styles (internal use only).\n *\n * @ignore\n * @"...
function_definition (+402 nodes collapsed)
comment "/**\n * Determines the concatenation and compression settings"...
function_definition (+336 nodes collapsed)
comment "/**\n * Handles the enqueueing of block scripts and styles th"...
function_definition (+98 nodes collapsed)
comment "/**\n * Applies a filter to the list of style nodes that come"...
function_definition (+74 nodes collapsed)
comment "/**\n * Enqueues the global styles defined via theme.json.\n *"...
function_definition (+453 nodes collapsed)
comment "/**\n * Checks if the editor scripts and styles for all regis"...
function_definition (+61 nodes collapsed)
comment "/**\n * Checks whether separate styles should be loaded for c"...
function_definition (+57 nodes collapsed)
comment "/**\n * Checks whether block styles should be loaded only on-"...
function_definition (+72 nodes collapsed)
comment "/**\n * Enqueues registered block scripts and styles, dependi"...
function_definition (+211 nodes collapsed)
comment "/**\n * Function responsible for enqueuing the styles require"...
function_definition (+358 nodes collapsed)
comment "/**\n * Function responsible for enqueuing the assets require"...
function_definition (+324 nodes collapsed)
comment "/**\n * Enqueues the assets required for the block directory "...
function_definition (+33 nodes collapsed)
comment "/**\n * Enqueues the assets required for the format library w"...
function_definition (+33 nodes collapsed)
comment "/**\n * Sanitizes an attributes array into an attributes stri"...
function_definition (+143 nodes collapsed)
comment "/**\n * Formats `<script>` loader tags.\n *\n * It is possible "...
function_definition (+61 nodes collapsed)
comment "/**\n * Prints formatted `<script>` loader tag.\n *\n * It is p"...
function_definition (+25 nodes collapsed)
comment "/**\n * Constructs an inline script tag.\n *\n * It is possible"...
function_definition (+117 nodes collapsed)
comment "/**\n * Prints an inline script tag.\n *\n * It is possible to "...
function_definition (+40 nodes collapsed)
comment "/**\n * Allows small styles to be inlined.\n *\n * This improve"...
function_definition
function "function"
name "wp_maybe_inline_styles"
formal_parameters
( "("
) ")"
compound_statement
{ "{"
global_declaration
global "global"
variable_name
$ "$"
name "wp_styles"
; ";"
expression_statement
assignment_expression
variable_name
$ "$"
name "total_inline_limit"
= "="
integer "40000"
; ";"
comment "/**\n\t * The maximum size of inlined styles in bytes.\n\t *\n\t *"...
expression_statement (+22 nodes collapsed)
expression_statement
assignment_expression
variable_name
$ "$"
name "styles"
= "="
array_creation_expression
array "array"
( "("
) ")"
; ";"
comment "// Build an array of styles that have a path defined."
foreach_statement
foreach "foreach"
( "("
member_access_expression
variable_name
$ "$"
name "wp_styles"
-> "->"
name "queue"
as "as"
variable_name
$ "$"
name "handle"
) ")"
compound_statement
{ "{"
if_statement (+31 nodes collapsed)
expression_statement (+22 nodes collapsed)
expression_statement (+26 nodes collapsed)
if_statement
if "if"
parenthesized_expression
( "("
binary_expression
variable_name
$ "$"
name "path"
&& "&&"
variable_name
$ "$"
name "src"
) ")"
compound_statement
{ "{"
expression_statement
assignment_expression
variable_name
$ "$"
name "size"
= "="
function_call_expression
name "wp_filesize"
arguments
( "("
argument
variable_name
$ "$"
name "path"
) ")"
; ";"
if_statement
if "if"
parenthesized_expression
( "("
unary_op_expression
! "!"
variable_name
$ "$"
name "size"
) ")"
compound_statement
{ "{"
continue_statement
continue "continue"
; ";"
} "}"
expression_statement (+54 nodes collapsed)
} "}"
} "}"
if_statement
if "if"
parenthesized_expression
( "("
unary_op_expression
! "!"
function_call_expression
name "empty"
arguments
( "("
argument
variable_name
$ "$"
name "styles"
) ")"
) ")"
compound_statement
{ "{"
comment "// Reorder styles array based on size."
expression_statement (+67 nodes collapsed)
comment "/*\n\t\t * The total inlined size.\n\t\t *\n\t\t * On each iteration "...
expression_statement
assignment_expression
variable_name
$ "$"
name "total_inline_size"
= "="
integer "0"
; ";"
comment "// Loop styles."
foreach_statement
foreach "foreach"
( "("
variable_name
$ "$"
name "styles"
as "as"
variable_name
$ "$"
name "style"
) ")"
compound_statement
{ "{"
comment "// Size check. Since styles are ordered by size, we can brea"...
if_statement (+31 nodes collapsed)
comment "// Get the styles if we don't already have them."
expression_statement (+30 nodes collapsed)
comment "/*\n\t\t\t * Check if the style contains relative URLs that need"...
expression_statement (+42 nodes collapsed)
comment "// Keep track of the original `src` for the style that was i"...
expression_statement (+40 nodes collapsed)
comment "// Set `src` to `false` and add styles inline."
expression_statement (+27 nodes collapsed)
if_statement (+80 nodes collapsed)
expression_statement (+49 nodes collapsed)
comment "// Add the styles size to the $total_inline_size var."
expression_statement (+21 nodes collapsed)
} "}"
} "}"
} "}"
comment "/**\n * Makes URLs relative to the WordPress installation.\n *"...
function_definition (+268 nodes collapsed)
comment "/**\n * Function that enqueues the CSS Custom Properties comi"...
function_definition (+65 nodes collapsed)
comment "/**\n * Hooks inline styles in the proper place, depending on"...
function_definition (+102 nodes collapsed)
comment "/**\n * Fetches, processes and compiles stored core styles, t"...
function_definition (+484 nodes collapsed)
comment "/**\n * Enqueues a stylesheet for a specific block.\n *\n * If "...
function_definition (+628 nodes collapsed)
comment "/**\n * Loads classic theme styles when the current theme lac"...
function_definition (+36 nodes collapsed)
comment "/**\n * Enqueues the assets required for the Command Palette."...
function_definition (+1090 nodes collapsed)
comment "/**\n * Removes leading and trailing _empty_ script tags.\n *\n"...
function_definition (+294 nodes collapsed)
comment "/**\n * Adds hooks to load block styles on demand in classic "...
function_definition (+167 nodes collapsed)
comment "/**\n * Adds the hooks needed for CSS output to be delayed un"...
function_definition (+1186 nodes collapsed)
comment "/**\n * Return the corresponding JavaScript `dataset` name fo"...
function_definition (+462 nodes collapsed)
comment "/**\n * Returns a corresponding HTML attribute name for the g"...
function_definition (+347 nodes collapsed)

After

program
php_tag "<?php"
comment "/**\n * WordPress scripts and styles default loader.\n *\n * Se"...
comment "/** WordPress Dependency Class */"
expression_statement
require_expression
require "require"
binary_expression
binary_expression
name "ABSPATH"
. "."
name "WPINC"
. "."
string
' "'"
string_content "/class-wp-dependency.php"
' "'"
; ";"
comment "/** WordPress Dependencies Class */"
expression_statement
require_expression
require "require"
binary_expression
binary_expression
name "ABSPATH"
. "."
name "WPINC"
. "."
string
' "'"
string_content "/class-wp-dependencies.php"
' "'"
; ";"
comment "/** WordPress Scripts Class */"
expression_statement
require_expression
require "require"
binary_expression
binary_expression
name "ABSPATH"
. "."
name "WPINC"
. "."
string
' "'"
string_content "/class-wp-scripts.php"
' "'"
; ";"
comment "/** WordPress Scripts Functions */"
expression_statement
require_expression
require "require"
binary_expression
binary_expression
name "ABSPATH"
. "."
name "WPINC"
. "."
string
' "'"
string_content "/functions.wp-scripts.php"
' "'"
; ";"
comment "/** WordPress Styles Class */"
expression_statement
require_expression
require "require"
binary_expression
binary_expression
name "ABSPATH"
. "."
name "WPINC"
. "."
string
' "'"
string_content "/class-wp-styles.php"
' "'"
; ";"
comment "/** WordPress Styles Functions */"
expression_statement
require_expression
require "require"
binary_expression
binary_expression
name "ABSPATH"
. "."
name "WPINC"
. "."
string
' "'"
string_content "/functions.wp-styles.php"
' "'"
; ";"
comment "/**\n * Registers TinyMCE scripts.\n *\n * @since 5.0.0\n *\n * @"...
function_definition (+305 nodes collapsed)
comment "/**\n * Registers all the WordPress vendor scripts that are i"...
function_definition (+786 nodes collapsed)
comment "/**\n * Returns contents of an inline script used in appendin"...
function_definition (+350 nodes collapsed)
comment "/**\n * Registers development scripts that integrate with `@w"...
function_definition (+253 nodes collapsed)
comment "/**\n * Registers all the WordPress packages scripts that are"...
function_definition (+505 nodes collapsed)
comment "/**\n * Adds inline scripts required for the WordPress JavaSc"...
function_definition (+1282 nodes collapsed)
comment "/**\n * Adds inline scripts required for the TinyMCE in the b"...
function_definition (+1284 nodes collapsed)
comment "/**\n * Registers all the WordPress packages scripts.\n *\n * @"...
function_definition (+86 nodes collapsed)
comment "/**\n * Returns the suffix that can be used for the scripts.\n"...
function_definition (+228 nodes collapsed)
comment "/**\n * Registers all WordPress scripts.\n *\n * Localizes some"...
function_definition (+14844 nodes collapsed)
comment "/**\n * Assigns default styles to $styles object.\n *\n * Nothi"...
function_definition (+3542 nodes collapsed)
comment "/**\n * Reorders JavaScript scripts array to place prototype "...
function_definition (+170 nodes collapsed)
comment "/**\n * Loads localized data on print rather than initializat"...
function_definition (+209 nodes collapsed)
comment "/**\n * Localizes the jQuery UI datepicker.\n *\n * @since 4.6."...
function_definition (+462 nodes collapsed)
comment "/**\n * Localizes community events data that needs to be pass"...
function_definition (+290 nodes collapsed)
comment "/**\n * Administration Screen CSS for changing the styles.\n *"...
function_definition (+304 nodes collapsed)
comment "/**\n * Prints the script queue in the HTML head on admin pag"...
function_definition (+140 nodes collapsed)
comment "/**\n * Prints the scripts that were queued for the footer or"...
function_definition (+126 nodes collapsed)
comment "/**\n * Prints scripts (internal use only)\n *\n * @since 2.8.0"...
function_definition (+356 nodes collapsed)
comment "/**\n * Prints the script queue in the HTML head on the front"...
function_definition (+83 nodes collapsed)
comment "/**\n * Private, for use in *_footer_scripts hooks\n *\n * In c"...
function_definition (+23 nodes collapsed)
comment "/**\n * Hooks to print the scripts and styles in the footer.\n"...
function_definition (+22 nodes collapsed)
comment "/**\n * Wrapper for do_action( 'wp_enqueue_scripts' ).\n *\n * "...
function_definition (+22 nodes collapsed)
comment "/**\n * Prints the styles queue in the HTML head on admin pag"...
function_definition (+109 nodes collapsed)
comment "/**\n * Prints the styles that were queued too late for the H"...
function_definition (+121 nodes collapsed)
comment "/**\n * Prints styles (internal use only).\n *\n * @ignore\n * @"...
function_definition (+402 nodes collapsed)
comment "/**\n * Determines the concatenation and compression settings"...
function_definition (+336 nodes collapsed)
comment "/**\n * Handles the enqueueing of block scripts and styles th"...
function_definition (+98 nodes collapsed)
comment "/**\n * Applies a filter to the list of style nodes that come"...
function_definition (+74 nodes collapsed)
comment "/**\n * Enqueues the global styles defined via theme.json.\n *"...
function_definition (+453 nodes collapsed)
comment "/**\n * Checks if the editor scripts and styles for all regis"...
function_definition (+61 nodes collapsed)
comment "/**\n * Checks whether separate styles should be loaded for c"...
function_definition (+57 nodes collapsed)
comment "/**\n * Checks whether block styles should be loaded only on-"...
function_definition (+72 nodes collapsed)
comment "/**\n * Enqueues registered block scripts and styles, dependi"...
function_definition (+211 nodes collapsed)
comment "/**\n * Function responsible for enqueuing the styles require"...
function_definition (+358 nodes collapsed)
comment "/**\n * Function responsible for enqueuing the assets require"...
function_definition (+324 nodes collapsed)
comment "/**\n * Enqueues the assets required for the block directory "...
function_definition (+33 nodes collapsed)
comment "/**\n * Enqueues the assets required for the format library w"...
function_definition (+33 nodes collapsed)
comment "/**\n * Sanitizes an attributes array into an attributes stri"...
function_definition (+143 nodes collapsed)
comment "/**\n * Formats `<script>` loader tags.\n *\n * It is possible "...
function_definition (+61 nodes collapsed)
comment "/**\n * Prints formatted `<script>` loader tag.\n *\n * It is p"...
function_definition (+25 nodes collapsed)
comment "/**\n * Constructs an inline script tag.\n *\n * It is possible"...
function_definition (+117 nodes collapsed)
comment "/**\n * Prints an inline script tag.\n *\n * It is possible to "...
function_definition (+40 nodes collapsed)
comment "/**\n * Allows small styles to be inlined.\n *\n * This improve"...
function_definition
function "function"
name "wp_maybe_inline_styles"
formal_parameters
( "("
) ")"
compound_statement
{ "{"
global_declaration
global "global"
variable_name
$ "$"
name "wp_styles"
; ";"
expression_statement
assignment_expression
variable_name
$ "$"
name "total_inline_limit"
= "="
integer "40000"
; ";"
comment "/**\n\t * The maximum size of inlined styles in bytes.\n\t *\n\t *"...
expression_statement (+22 nodes collapsed)
expression_statement
assignment_expression
variable_name
$ "$"
name "styles"
= "="
array_creation_expression
array "array"
( "("
) ")"
; ";"
comment "// Build an array of styles that have a path defined."
foreach_statement
foreach "foreach"
( "("
member_access_expression
variable_name
$ "$"
name "wp_styles"
-> "->"
name "queue"
as "as"
variable_name
$ "$"
name "handle"
) ")"
compound_statement
{ "{"
if_statement (+31 nodes collapsed)
expression_statement (+22 nodes collapsed)
expression_statement (+26 nodes collapsed)
if_statement
if "if"
parenthesized_expression
( "("
binary_expression
variable_name
$ "$"
name "path"
&& "&&"
variable_name
$ "$"
name "src"
) ")"
compound_statement
{ "{"
expression_statement
assignment_expression
variable_name
$ "$"
name "size"
= "="
function_call_expression
name "wp_filesize"
arguments
( "("
argument
variable_name
$ "$"
name "path"
) ")"
; ";"
if_statement
if "if"
parenthesized_expression
( "("
binary_expression
binary_expression
integer "0"
=== "==="
variable_name
$ "$"
name "size"
&& "&&"
unary_op_expression
! "!"
function_call_expression
name "file_exists"
arguments
( "("
argument
variable_name
$ "$"
name "path"
) ")"
) ")"
compound_statement
{ "{"
expression_statement
function_call_expression
name "_doing_it_wrong"
arguments
( "("
argument
name "__FUNCTION__"
, ","
argument
function_call_expression
name "sprintf"
arguments
( "("
comment "/* translators: 1: 'path', 2: filesystem path, 3: style hand"...
argument
function_call_expression
name "__"
arguments
( "("
argument
string
' "'"
string_content "Unable to read the \"%1$s\" key with value \"%2$s\" for styleshe"...
' "'"
) ")"
, ","
argument
string
' "'"
string_content "path"
' "'"
, ","
argument
function_call_expression
name "esc_html"
arguments
( "("
argument
variable_name
$ "$"
name "path"
) ")"
, ","
argument
function_call_expression
name "esc_html"
arguments
( "("
argument
variable_name
$ "$"
name "handle"
) ")"
) ")"
, ","
argument
string
' "'"
string_content "7.0.0"
' "'"
) ")"
; ";"
continue_statement
continue "continue"
; ";"
} "}"
expression_statement (+54 nodes collapsed)
} "}"
} "}"
if_statement
if "if"
parenthesized_expression
( "("
unary_op_expression
! "!"
function_call_expression
name "empty"
arguments
( "("
argument
variable_name
$ "$"
name "styles"
) ")"
) ")"
compound_statement
{ "{"
comment "// Reorder styles array based on size."
expression_statement (+67 nodes collapsed)
comment "/*\n\t\t * The total inlined size.\n\t\t *\n\t\t * On each iteration "...
expression_statement
assignment_expression
variable_name
$ "$"
name "total_inline_size"
= "="
integer "0"
; ";"
comment "// Loop styles."
foreach_statement
foreach "foreach"
( "("
variable_name
$ "$"
name "styles"
as "as"
variable_name
$ "$"
name "style"
) ")"
compound_statement
{ "{"
comment "// Size check. Since styles are ordered by size, we can brea"...
if_statement (+31 nodes collapsed)
comment "// Get the styles if we don't already have them."
if_statement
if "if"
parenthesized_expression
( "("
unary_op_expression
! "!"
function_call_expression
name "is_readable"
arguments
( "("
argument
subscript_expression
variable_name
$ "$"
name "style"
[ "["
string
' "'"
string_content "path"
' "'"
] "]"
) ")"
) ")"
compound_statement
{ "{"
expression_statement
function_call_expression
name "_doing_it_wrong"
arguments
( "("
argument
name "__FUNCTION__"
, ","
argument
function_call_expression
name "sprintf"
arguments
( "("
comment "/* translators: 1: 'path', 2: filesystem path, 3: style hand"...
argument
function_call_expression
name "__"
arguments
( "("
argument
string
' "'"
string_content "Unable to read the \"%1$s\" key with value \"%2$s\" for styleshe"...
' "'"
) ")"
, ","
argument
string
' "'"
string_content "path"
' "'"
, ","
argument
function_call_expression
name "esc_html"
arguments
( "("
argument
subscript_expression
variable_name
$ "$"
name "style"
[ "["
string
' "'"
string_content "path"
' "'"
] "]"
) ")"
, ","
argument
function_call_expression
name "esc_html"
arguments
( "("
argument
subscript_expression
variable_name
$ "$"
name "style"
[ "["
string
' "'"
string_content "handle"
' "'"
] "]"
) ")"
) ")"
, ","
argument
string
' "'"
string_content "7.0.0"
' "'"
) ")"
; ";"
continue_statement
continue "continue"
; ";"
} "}"
expression_statement (+30 nodes collapsed)
comment "/*\n\t\t\t * Check if the style contains relative URLs that need"...
expression_statement (+42 nodes collapsed)
comment "// Keep track of the original `src` for the style that was i"...
expression_statement (+40 nodes collapsed)
comment "// Set `src` to `false` and add styles inline."
expression_statement (+27 nodes collapsed)
if_statement (+80 nodes collapsed)
expression_statement (+49 nodes collapsed)
comment "// Add the styles size to the $total_inline_size var."
expression_statement (+21 nodes collapsed)
} "}"
} "}"
} "}"
comment "/**\n * Makes URLs relative to the WordPress installation.\n *"...
function_definition (+268 nodes collapsed)
comment "/**\n * Function that enqueues the CSS Custom Properties comi"...
function_definition (+65 nodes collapsed)
comment "/**\n * Hooks inline styles in the proper place, depending on"...
function_definition (+102 nodes collapsed)
comment "/**\n * Fetches, processes and compiles stored core styles, t"...
function_definition (+484 nodes collapsed)
comment "/**\n * Enqueues a stylesheet for a specific block.\n *\n * If "...
function_definition (+628 nodes collapsed)
comment "/**\n * Loads classic theme styles when the current theme lac"...
function_definition (+36 nodes collapsed)
comment "/**\n * Enqueues the assets required for the Command Palette."...
function_definition (+1090 nodes collapsed)
comment "/**\n * Removes leading and trailing _empty_ script tags.\n *\n"...
function_definition (+294 nodes collapsed)
comment "/**\n * Adds hooks to load block styles on demand in classic "...
function_definition (+167 nodes collapsed)
comment "/**\n * Adds the hooks needed for CSS output to be delayed un"...
function_definition (+1186 nodes collapsed)
comment "/**\n * Return the corresponding JavaScript `dataset` name fo"...
function_definition (+462 nodes collapsed)
comment "/**\n * Returns a corresponding HTML attribute name for the g"...
function_definition (+347 nodes collapsed)