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)