From bec78b5e115a0d2170d2ccf30587f715f591ad6e Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Thu, 27 Mar 2014 06:56:14 +0000 Subject: [PATCH] Proper IDs for the custom fields box. props SergeyBiryukov. fixes #14376. Built from https://develop.svn.wordpress.org/trunk@27776 git-svn-id: http://core.svn.wordpress.org/trunk@27613 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/template.php | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/wp-admin/includes/template.php b/wp-admin/includes/template.php index d5cf3adacb..6d7178b2a8 100644 --- a/wp-admin/includes/template.php +++ b/wp-admin/includes/template.php @@ -566,7 +566,7 @@ function _list_meta_row( $entry, &$count ) { $delete_nonce = wp_create_nonce( 'delete-meta_' . $entry['meta_id'] ); $r .= "\n\t"; - $r .= "\n\t\t"; + $r .= "\n\t\t"; $r .= "\n\t\t
"; $r .= get_submit_button( __( 'Delete' ), 'deletemeta small', "deletemeta[{$entry['meta_id']}]", false, array( 'data-wp-lists' => "delete:the-list:meta-{$entry['meta_id']}::_ajax_nonce=$delete_nonce" ) ); @@ -576,7 +576,7 @@ function _list_meta_row( $entry, &$count ) { $r .= wp_nonce_field( 'change-meta', '_ajax_nonce', false, false ); $r .= ""; - $r .= "\n\t\t\n\t"; + $r .= "\n\t\t\n\t"; return $r; } @@ -607,14 +607,18 @@ function meta_form( $post = null ) { HAVING meta_key NOT LIKE '\_%' ORDER BY meta_key LIMIT $limit" ); - if ( $keys ) - natcasesort($keys); + if ( $keys ) { + natcasesort( $keys ); + $meta_key_input_id = 'metakeyselect'; + } else { + $meta_key_input_id = 'metakeyinput'; + } ?>

- +