Ignore protected meta keys in meta_form(). see #18786.

git-svn-id: https://develop.svn.wordpress.org/trunk@23534 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2013-02-28 19:51:29 +00:00
parent 7d025e3e81
commit d3a4aa7e29
1 changed files with 2 additions and 0 deletions

View File

@ -535,6 +535,8 @@ function meta_form() {
<?php
foreach ( $keys as $key ) {
if ( is_protected_meta( $key, 'post' ) )
continue;
echo "\n<option value='" . esc_attr($key) . "'>" . esc_html($key) . "</option>";
}
?>