mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 01:27:36 +01:00
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:
parent
cfe09b99e5
commit
08576ca317
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user