attribute_escape

The timeline below displays how wordpress function attribute_escape has changed across different WordPress versions. If a version is not listed, refer to the next available version below.

WordPress Version: 4.6

/**
 * Escaping for HTML attributes.
 *
 * @since 2.0.6
 * @deprecated 2.8.0 Use esc_attr()
 * @see esc_attr()
 *
 * @param string $text
 * @return string
 */
function attribute_escape($text)
{
    _deprecated_function(__FUNCTION__, '2.8.0', 'esc_attr()');
    return esc_attr($text);
}

WordPress Version: 4.4

/**
 * Escaping for HTML attributes.
 *
 * @since 2.0.6
 * @deprecated 2.8.0 Use esc_attr()
 * @see esc_attr()
 *
 * @param string $text
 * @return string
 */
function attribute_escape($text)
{
    _deprecated_function(__FUNCTION__, '2.8', 'esc_attr()');
    return esc_attr($text);
}

WordPress Version: 3.7

/**
 * Escaping for HTML attributes.
 *
 * @since 2.0.6
 * @deprecated 2.8.0
 * @deprecated Use esc_attr()
 * @see esc_attr()
 *
 * @param string $text
 * @return string
 */
function attribute_escape($text)
{
    _deprecated_function(__FUNCTION__, '2.8', 'esc_attr()');
    return esc_attr($text);
}