From 6f5f178e8c7dc9e884a0fa73a2484511bfde3878 Mon Sep 17 00:00:00 2001 From: Dominik Schilling Date: Sat, 23 Jul 2016 10:58:23 +0000 Subject: [PATCH] List Table: Improve `WP_Plugins_List_Table::search_box()` which was added in [38033]. * Update DocBlock to use third-person singular verb and to include a period at the end. * Use `submit_button()` for the submit button. * Escape the ID attribute. * Apply the same to `WP_List_Table::search_box()`. See #37230. git-svn-id: https://develop.svn.wordpress.org/trunk@38146 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/class-wp-list-table.php | 12 ++++++------ .../includes/class-wp-plugins-list-table.php | 12 ++++++------ 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/wp-admin/includes/class-wp-list-table.php b/src/wp-admin/includes/class-wp-list-table.php index c15cdfe207..ee0f9af593 100644 --- a/src/wp-admin/includes/class-wp-list-table.php +++ b/src/wp-admin/includes/class-wp-list-table.php @@ -335,13 +335,13 @@ class WP_List_Table { } /** - * Display the search box. + * Displays the search box. * * @since 3.1.0 * @access public * - * @param string $text The search button text - * @param string $input_id The search input id + * @param string $text The 'submit' button label. + * @param string $input_id ID attribute value for the search input field. */ public function search_box( $text, $input_id ) { if ( empty( $_REQUEST['s'] ) && !$this->has_items() ) @@ -359,9 +359,9 @@ class WP_List_Table { echo ''; ?> has_items() ) { @@ -365,9 +365,9 @@ class WP_Plugins_List_Table extends WP_List_Table { } ?>