Changeset 61426
- Timestamp:
- 01/03/2026 07:37:01 AM (4 months ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/script-loader.php (modified) (10 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/script-loader.php
r61425 r61426 2348 2348 * @global bool $concatenate_scripts 2349 2349 * 2350 * @return array|void2350 * @return string[]|void 2351 2351 */ 2352 2352 function print_late_styles() { … … 2505 2505 * @since 6.1.0 2506 2506 * 2507 * @param array $nodes The nodes to filter.2508 * @return array A filtered array of style nodes.2507 * @param array<array<string, mixed>> $nodes The nodes to filter. 2508 * @return array<array<string, mixed>> A filtered array of style nodes. 2509 2509 */ 2510 2510 function wp_filter_out_block_nodes( $nodes ) { … … 2866 2866 * @since 5.7.0 2867 2867 * 2868 * @param array $attributes Key-value pairs representing `<script>` tag attributes.2868 * @param array<string, string|bool> $attributes Key-value pairs representing `<script>` tag attributes. 2869 2869 * @return string String made of sanitized `<script>` tag attributes. 2870 2870 */ … … 2897 2897 * @since 5.7.0 2898 2898 * 2899 * @param array $attributes Key-value pairs representing `<script>` tag attributes.2899 * @param array<string, string|bool> $attributes Key-value pairs representing `<script>` tag attributes. 2900 2900 * @return string String containing `<script>` opening and closing tags. 2901 2901 */ … … 2923 2923 * @since 5.7.0 2924 2924 * 2925 * @param array $attributes Key-value pairs representing `<script>` tag attributes.2925 * @param array<string, string|bool> $attributes Key-value pairs representing `<script>` tag attributes. 2926 2926 */ 2927 2927 function wp_print_script_tag( $attributes ) { … … 2937 2937 * @since 5.7.0 2938 2938 * 2939 * @param string $data Data for script tag: JavaScript, importmap, speculationrules, etc.2940 * @param array $attributes Optional. Key-value pairs representing `<script>` tag attributes.2939 * @param string $data Data for script tag: JavaScript, importmap, speculationrules, etc. 2940 * @param array<string, string|bool> $attributes Optional. Key-value pairs representing `<script>` tag attributes. 2941 2941 * @return string String containing inline JavaScript code wrapped around `<script>` tag. 2942 2942 */ … … 2949 2949 * @since 5.7.0 2950 2950 * 2951 * @param array $attributes Key-value pairs representing `<script>` tag attributes.2952 * Only the attribute name is added to the `<script>` tag for2953 * entries with a boolean value, and that are true.2954 * @param string $data Inline data.2951 * @param array<string, string|bool> $attributes Key-value pairs representing `<script>` tag attributes. 2952 * Only the attribute name is added to the `<script>` tag for 2953 * entries with a boolean value, and that are true. 2954 * @param string $data Inline data. 2955 2955 */ 2956 2956 $attributes = apply_filters( 'wp_inline_script_attributes', $attributes, $data ); … … 2967 2967 * @since 5.7.0 2968 2968 * 2969 * @param string $data Data for script tag: JavaScript, importmap, speculationrules, etc.2970 * @param array $attributes Optional. Key-value pairs representing `<script>` tag attributes.2969 * @param string $data Data for script tag: JavaScript, importmap, speculationrules, etc. 2970 * @param array<string, string|bool> $attributes Optional. Key-value pairs representing `<script>` tag attributes. 2971 2971 */ 2972 2972 function wp_print_inline_script_tag( $data, $attributes = array() ) { … … 3189 3189 * @since 6.1.0 3190 3190 * 3191 * @param array $options {3191 * @param array<string, bool> $options { 3192 3192 * Optional. An array of options to pass to wp_style_engine_get_stylesheet_from_context(). 3193 3193 * Default empty array. … … 3261 3261 * @since 5.9.0 3262 3262 * 3263 * @param string $block_name The block-name, including namespace.3264 * @param array $args {3263 * @param string $block_name The block-name, including namespace. 3264 * @param array<string, string|string[]|bool|null> $args { 3265 3265 * An array of arguments. See wp_register_style() for full information about each argument. 3266 3266 *
Note: See TracChangeset
for help on using the changeset viewer.