diff --git a/src/wp-includes/kses.php b/src/wp-includes/kses.php
index 9c57c3a8e5..3000299f85 100644
|
a
|
b
|
function wp_kses_attr( $element, $attr, $allowed_html, $allowed_protocols ) { |
| 1152 | 1152 | * @return bool Whether or not the attribute is allowed. |
| 1153 | 1153 | */ |
| 1154 | 1154 | function wp_kses_attr_check( &$name, &$value, &$whole, $vless, $element, $allowed_html ) { |
| | 1155 | if ( ! isset( $allowed_html[ strtolower( $element ) ] ) ) { |
| | 1156 | $name = ''; |
| | 1157 | $value = ''; |
| | 1158 | $whole = ''; |
| | 1159 | return false; |
| | 1160 | } |
| | 1161 | |
| 1155 | 1162 | $allowed_attr = $allowed_html[ strtolower( $element ) ]; |
| 1156 | 1163 | |
| 1157 | 1164 | $name_low = strtolower( $name ); |