From cfe7978ca64b2627dabf1e4c623044d2bca78305 Mon Sep 17 00:00:00 2001 From: Andrew Ozz Date: Mon, 1 Dec 2008 00:29:14 +0000 Subject: [PATCH] Hide post meta select when meta table is empty, see #8182 git-svn-id: https://develop.svn.wordpress.org/trunk@9992 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/includes/template.php | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/wp-admin/includes/template.php b/wp-admin/includes/template.php index 0e8f9eff88..c15045c386 100644 --- a/wp-admin/includes/template.php +++ b/wp-admin/includes/template.php @@ -923,10 +923,10 @@ function inline_edit_row( $type ) { $is_page = 'page' == $type; if ( $is_page ) { - $screen = 'edit'; + $screen = 'edit-pages'; $post = get_default_page_to_edit(); } else { - $screen = 'edit-pages'; + $screen = 'edit'; $post = get_default_post_to_edit(); } @@ -2300,7 +2300,7 @@ function meta_form() { if ( $keys ) natcasesort($keys); ?> -

+

@@ -2312,7 +2312,7 @@ function meta_form() {
- + - - - + + + +