Preserve HTML entities in Custom Fields. fixes #6374

git-svn-id: https://develop.svn.wordpress.org/trunk@7506 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Mark Jaquith 2008-03-24 22:06:17 +00:00
parent d32e5b2e7c
commit c04bf3260a
1 changed files with 1 additions and 1 deletions

View File

@ -770,7 +770,7 @@ function _list_meta_row( $entry, &$count ) {
} }
$entry['meta_key'] = attribute_escape($entry['meta_key']); $entry['meta_key'] = attribute_escape($entry['meta_key']);
$entry['meta_value'] = attribute_escape($entry['meta_value']); $entry['meta_value'] = htmlspecialchars($entry['meta_value']); // using a <textarea />
$entry['meta_id'] = (int) $entry['meta_id']; $entry['meta_id'] = (int) $entry['meta_id'];
$delete_nonce = wp_create_nonce( 'delete-meta_' . $entry['meta_id'] ); $delete_nonce = wp_create_nonce( 'delete-meta_' . $entry['meta_id'] );