From 51671afc0aa5d3362ed491dcd3db2ce2a22044c4 Mon Sep 17 00:00:00 2001 From: Dominik Schilling Date: Sat, 23 Jul 2016 11:00:36 +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. Built from https://develop.svn.wordpress.org/trunk@38146 git-svn-id: http://core.svn.wordpress.org/trunk@38087 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/class-wp-list-table.php | 12 ++++++------ wp-admin/includes/class-wp-plugins-list-table.php | 12 ++++++------ wp-includes/version.php | 2 +- 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/wp-admin/includes/class-wp-list-table.php b/wp-admin/includes/class-wp-list-table.php index c15cdfe207..ee0f9af593 100644 --- a/wp-admin/includes/class-wp-list-table.php +++ b/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 { } ?>