Give the screen options Apply button an id so it validates.

git-svn-id: http://svn.automattic.com/wordpress/trunk@17007 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
westi 2010-12-16 21:08:37 +00:00
parent cfe09b99e5
commit 08576ca317
1 changed files with 1 additions and 1 deletions

View File

@ -1897,7 +1897,7 @@ function screen_options($screen) {
$return = "<div class='screen-options'>\n"; $return = "<div class='screen-options'>\n";
if ( !empty($per_page_label) ) if ( !empty($per_page_label) )
$return .= "<input type='text' class='screen-per-page' name='wp_screen_options[value]' id='$option' maxlength='3' value='$per_page' /> <label for='$option'>$per_page_label</label>\n"; $return .= "<input type='text' class='screen-per-page' name='wp_screen_options[value]' id='$option' maxlength='3' value='$per_page' /> <label for='$option'>$per_page_label</label>\n";
$return .= get_submit_button( __( 'Apply' ), 'button', '', false ); $return .= get_submit_button( __( 'Apply' ), 'button', 'screen-options-apply', false );
$return .= "<input type='hidden' name='wp_screen_options[option]' value='" . esc_attr($option) . "' />"; $return .= "<input type='hidden' name='wp_screen_options[option]' value='" . esc_attr($option) . "' />";
$return .= "</div>\n"; $return .= "</div>\n";
return $return; return $return;