@@ -87611,7 +87611,7 @@ function install_plugin_information()
87611
87611
* }
87612
87612
* @param bool $compatible_php The result of a PHP compatibility check.
87613
87613
* @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 .
87615
87615
* @phpstan-param object|array{
87616
87616
* slug?: string,
87617
87617
* requires_plugins?: string[],
@@ -95875,16 +95875,33 @@ function filter_block_kses($block, $allowed_html, $allowed_protocols = array())
95875
95875
* non-allowable HTML.
95876
95876
*
95877
95877
* @since 5.3.1
95878
+ * @since 6.5.5 Added the `$block_context` parameter.
95878
95879
*
95879
95880
* @param string[]|string $value The attribute value to filter.
95880
95881
* @param array[]|string $allowed_html An array of allowed HTML elements and attributes,
95881
95882
* or a context name such as 'post'. See wp_kses_allowed_html()
95882
95883
* for the list of accepted context names.
95883
95884
* @param string[] $allowed_protocols Optional. Array of allowed URL protocols.
95884
95885
* 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.
95885
95887
* @return string[]|string The filtered and sanitized result.
95886
95888
*/
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)
95888
95905
{
95889
95906
}
95890
95907
/**
@@ -109832,6 +109849,7 @@ function esc_xml($text)
109832
109849
* Escapes an HTML tag name.
109833
109850
*
109834
109851
* @since 2.5.0
109852
+ * @since 6.5.5 Allow hyphens in tag names (i.e. custom elements).
109835
109853
*
109836
109854
* @param string $tag_name
109837
109855
* @return string
0 commit comments