mirror of
git://develop.git.wordpress.org/
synced 2025-02-28 10:33:05 +01:00
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
|
<?php
|
||||||
|
|
||||||
foreach ( $keys as $key ) {
|
foreach ( $keys as $key ) {
|
||||||
|
if ( is_protected_meta( $key, 'post' ) )
|
||||||
|
continue;
|
||||||
echo "\n<option value='" . esc_attr($key) . "'>" . esc_html($key) . "</option>";
|
echo "\n<option value='" . esc_attr($key) . "'>" . esc_html($key) . "</option>";
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user