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:
parent
7d025e3e81
commit
d3a4aa7e29
|
@ -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>";
|
||||
}
|
||||
?>
|
||||
|
|
Loading…
Reference in New Issue