Skip to content

Commit aecaf85

Browse files
committed
Generate stubs for WordPress 6.5.5
1 parent 4d3a93d commit aecaf85

File tree

2 files changed

+21
-3
lines changed

2 files changed

+21
-3
lines changed

source/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"ext-mbstring": "*",
88
"ext-openssl": "*",
99
"ext-sodium": "*",
10-
"johnpbloch/wordpress": "6.5.4"
10+
"johnpbloch/wordpress": "6.5.5"
1111
},
1212
"minimum-stability": "stable",
1313
"config": {

wordpress-stubs.php

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87611,7 +87611,7 @@ function install_plugin_information()
8761187611
* }
8761287612
* @param bool $compatible_php The result of a PHP compatibility check.
8761387613
* @param bool $compatible_wp The result of a WP compatibility check.
87614-
* @return string $button The markup for the dependency row button.
87614+
* @return string The markup for the dependency row button. An empty string if the user does not have capabilities.
8761587615
* @phpstan-param object|array{
8761687616
* slug?: string,
8761787617
* requires_plugins?: string[],
@@ -95875,16 +95875,33 @@ function filter_block_kses($block, $allowed_html, $allowed_protocols = array())
9587595875
* non-allowable HTML.
9587695876
*
9587795877
* @since 5.3.1
95878+
* @since 6.5.5 Added the `$block_context` parameter.
9587895879
*
9587995880
* @param string[]|string $value The attribute value to filter.
9588095881
* @param array[]|string $allowed_html An array of allowed HTML elements and attributes,
9588195882
* or a context name such as 'post'. See wp_kses_allowed_html()
9588295883
* for the list of accepted context names.
9588395884
* @param string[] $allowed_protocols Optional. Array of allowed URL protocols.
9588495885
* Defaults to the result of wp_allowed_protocols().
95886+
* @param array $block_context Optional. The block the attribute belongs to, in parsed block array format.
9588595887
* @return string[]|string The filtered and sanitized result.
9588695888
*/
95887-
function filter_block_kses_value($value, $allowed_html, $allowed_protocols = array())
95889+
function filter_block_kses_value($value, $allowed_html, $allowed_protocols = array(), $block_context = \null)
95890+
{
95891+
}
95892+
/**
95893+
* Sanitizes the value of the Template Part block's `tagName` attribute.
95894+
*
95895+
* @since 6.5.5
95896+
*
95897+
* @param string $attribute_value The attribute value to filter.
95898+
* @param string $attribute_name The attribute name.
95899+
* @param array[]|string $allowed_html An array of allowed HTML elements and attributes,
95900+
* or a context name such as 'post'. See wp_kses_allowed_html()
95901+
* for the list of accepted context names.
95902+
* @return string The sanitized attribute value.
95903+
*/
95904+
function filter_block_core_template_part_attributes($attribute_value, $attribute_name, $allowed_html)
9588895905
{
9588995906
}
9589095907
/**
@@ -109832,6 +109849,7 @@ function esc_xml($text)
109832109849
* Escapes an HTML tag name.
109833109850
*
109834109851
* @since 2.5.0
109852+
* @since 6.5.5 Allow hyphens in tag names (i.e. custom elements).
109835109853
*
109836109854
* @param string $tag_name
109837109855
* @return string

0 commit comments

Comments
 (0)