From d420b71d5259c055074d2848b5f984a29769aba8 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Tue, 24 Sep 2013 01:30:31 +0000 Subject: [PATCH] Ignore unauthorized meta keys in meta_form(). fixes #18786. git-svn-id: https://develop.svn.wordpress.org/trunk@25591 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/meta-boxes.php | 2 +- src/wp-admin/includes/template.php | 9 ++++++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/wp-admin/includes/meta-boxes.php b/src/wp-admin/includes/meta-boxes.php index 7f13f54547..4ea03e94df 100644 --- a/src/wp-admin/includes/meta-boxes.php +++ b/src/wp-admin/includes/meta-boxes.php @@ -506,7 +506,7 @@ foreach ( $metadata as $key => $value ) { unset( $metadata[ $key ] ); } list_meta( $metadata ); -meta_form(); ?> +meta_form( $post ); ?>

use in your theme.'); ?>

get_col( " SELECT meta_key @@ -535,7 +538,7 @@ function meta_form() { ID, $key ) ) continue; echo "\n"; }