wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren
wp_kses_uri_attributes › WordPress Function
Seit5.0.1
Veraltetn/v
› wp_kses_uri_attributes ( Keine Parameter )
| Links: | |
| Gibt zurück: |
|
| Definiert in: |
|
| Codex: |
Returns an array of HTML attribute names whose value contains a URL.
This function returns a list of all HTML attributes that must contain a URL according to the HTML specification. This list includes URI attributes both allowed and disallowed by KSES.Ähnliche Funktionen: wp_pre_kses_block_attributes, wp_sanitize_script_attributes, wp_kses_attr, wp_kses_js_entities, wp_kses_one_attr
Quellcode
function wp_kses_uri_attributes() {
$uri_attributes = array(
'action',
'archive',
'background',
'cite',
'classid',
'codebase',
'data',
'formaction',
'href',
'icon',
'longdesc',
'manifest',
'poster',
'profile',
'src',
'usemap',
'xmlns',
);
/**
* Filters the list of attributes that are required to contain a URL.
*
* Use this filter to add any `data-` attributes that are required to be
* validated as a URL.
*
* @since 5.0.1
*
* @param string[] $uri_attributes HTML attribute names whose value contains a URL.
*/
$uri_attributes = apply_filters( 'wp_kses_uri_attributes', $uri_attributes );
return $uri_attributes;
}