mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-10-05 23:27:04 +00:00
_a(), _ea(), _xa(), attr() are now esc_attr__(), esc_attr_e(), esc_attr_x(), esc_attr() -- still short, but less cryptic. see #9650
git-svn-id: https://develop.svn.wordpress.org/trunk@11204 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -869,7 +869,7 @@ function sanitize_post_field($field, $value, $post_id, $context) {
|
||||
else
|
||||
$value = format_to_edit($value);
|
||||
} else {
|
||||
$value = attr($value);
|
||||
$value = esc_attr($value);
|
||||
}
|
||||
} else if ( 'db' == $context ) {
|
||||
if ( $prefixed ) {
|
||||
@@ -888,7 +888,7 @@ function sanitize_post_field($field, $value, $post_id, $context) {
|
||||
}
|
||||
|
||||
if ( 'attribute' == $context )
|
||||
$value = attr($value);
|
||||
$value = esc_attr($value);
|
||||
else if ( 'js' == $context )
|
||||
$value = js_escape($value);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user