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

git-svn-id: https://develop.svn.wordpress.org/trunk@17007 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Peter Westwood 2010-12-16 21:08:37 +00:00
parent 0f40bb19cd
commit f3490db600

View File

@ -1897,7 +1897,7 @@ function screen_options($screen) {
$return = "<div class='screen-options'>\n";
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 .= 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 .= "</div>\n";
return $return;