mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-22 16:21:26 +01:00
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:
parent
8293fc84bb
commit
401e88e387
@ -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
Block a user