WordPress at a glance
function is not described

attribute_escape() WP 2.0.6

Deprecated in 2.8.0. It is no longer supported and can be removed in future releases. Use esc_attr() instead.

Escaping for HTML attributes.

No Hooks.

Return

String.

Usage

attribute_escape( $text );
$text(string) (required)

Notes

  • See: esc_attr()

Changelog

Since DEL 2.8.0 Introduced.

Code of attribute escape: wp-includes/deprecated.php WP 5.2.2

<?php
function attribute_escape( $text ) {
	_deprecated_function( __FUNCTION__, '2.8.0', 'esc_attr()' );
	return esc_attr( $text );
}