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

git-svn-id: http://core.svn.wordpress.org/trunk@23534 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrew Nacin 2013-02-28 19:51:29 +00:00
parent 8293fc84bb
commit 401e88e387

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>";
}
?>