HTML API: Code improvements following [58472].
Props xknown, jorbin. Unprops audrasjb. Built from https://develop.svn.wordpress.org/trunk@58473 git-svn-id: http://core.svn.wordpress.org/trunk@57922 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
46851b83eb
commit
10c123044c
|
@ -2980,8 +2980,8 @@ class WP_HTML_Tag_Processor {
|
||||||
*
|
*
|
||||||
* @see https://html.spec.whatwg.org/#attributes-3
|
* @see https://html.spec.whatwg.org/#attributes-3
|
||||||
*/
|
*/
|
||||||
$escaped_new_value = esc_attr( $value );
|
$escaped_new_value = in_array( $comparable_name, wp_kses_uri_attributes() ) ? esc_url( $value ) : esc_attr( $value );
|
||||||
$updated_attribute = wp_kses_one_attr( "{$comparable_name}=\"{$escaped_new_value}\"", $tag_name );
|
$updated_attribute = "{$name}=\"{$escaped_new_value}\"";
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '6.6-beta3-58472';
|
$wp_version = '6.6-beta3-58473';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue