diff --git src/wp-admin/edit-comments.php src/wp-admin/edit-comments.php
index fc105fe..f5448ab 100644
|
|
|
if ( $post_id ) { |
| 191 | 191 | _e( 'Comments' ); |
| 192 | 192 | } |
| 193 | 193 | |
| 194 | | if ( isset($_REQUEST['s']) && $_REQUEST['s'] ) { |
| | 194 | if ( isset($_REQUEST['s']) && strlen( $_REQUEST['s'] ) ) { |
| 195 | 195 | echo '<span class="subtitle">'; |
| 196 | 196 | /* translators: %s: search keywords */ |
| 197 | 197 | printf( __( 'Search results for “%s”' ), |
diff --git src/wp-admin/edit-tags.php src/wp-admin/edit-tags.php
index 846928c..713c8b9 100644
|
|
|
if ( is_plugin_active( 'wpcat2tag-importer/wpcat2tag-importer.php' ) ) { |
| 311 | 311 | |
| 312 | 312 | <div class="wrap nosubsub"> |
| 313 | 313 | <h1><?php echo esc_html( $title ); |
| 314 | | if ( !empty($_REQUEST['s']) ) |
| 315 | | printf( '<span class="subtitle">' . __('Search results for “%s”') . '</span>', esc_html( wp_unslash($_REQUEST['s']) ) ); ?> |
| | 314 | if ( isset( $_REQUEST['s'] ) && strlen( $_REQUEST['s'] ) ) { |
| | 315 | /* translators: %s: search keywords */ |
| | 316 | printf( '<span class="subtitle">' . __( 'Search results for “%s”' ) . '</span>', esc_html( wp_unslash( $_REQUEST['s'] ) ) ); |
| | 317 | } |
| | 318 | ?> |
| 316 | 319 | </h1> |
| 317 | 320 | |
| 318 | 321 | <?php if ( $message ) : ?> |
diff --git src/wp-admin/edit.php src/wp-admin/edit.php
index 62c70e2..27d8f68 100644
|
|
|
require_once( ABSPATH . 'wp-admin/admin-header.php' ); |
| 303 | 303 | echo esc_html( $post_type_object->labels->name ); |
| 304 | 304 | if ( current_user_can( $post_type_object->cap->create_posts ) ) |
| 305 | 305 | echo ' <a href="' . esc_url( admin_url( $post_new_file ) ) . '" class="page-title-action">' . esc_html( $post_type_object->labels->add_new ) . '</a>'; |
| 306 | | if ( ! empty( $_REQUEST['s'] ) ) |
| 307 | | printf( ' <span class="subtitle">' . __('Search results for “%s”') . '</span>', get_search_query() ); |
| | 306 | |
| | 307 | if ( isset( $_REQUEST['s'] ) && strlen( $_REQUEST['s'] ) ) { |
| | 308 | /* translators: %s: search keywords */ |
| | 309 | printf( ' <span class="subtitle">' . __( 'Search results for “%s”' ) . '</span>', get_search_query() ); |
| | 310 | } |
| 308 | 311 | ?></h1> |
| 309 | 312 | |
| 310 | 313 | <?php |
diff --git src/wp-admin/includes/class-wp-plugins-list-table.php src/wp-admin/includes/class-wp-plugins-list-table.php
index a5e3d98..9fb8103 100644
|
|
|
class WP_Plugins_List_Table extends WP_List_Table { |
| 75 | 75 | public function prepare_items() { |
| 76 | 76 | global $status, $plugins, $totals, $page, $orderby, $order, $s; |
| 77 | 77 | |
| 78 | | wp_reset_vars( array( 'orderby', 'order', 's' ) ); |
| | 78 | wp_reset_vars( array( 'orderby', 'order' ) ); |
| 79 | 79 | |
| 80 | 80 | /** |
| 81 | 81 | * Filter the full array of plugins to list in the Plugins list table. |
| … |
… |
class WP_Plugins_List_Table extends WP_List_Table { |
| 224 | 224 | } |
| 225 | 225 | } |
| 226 | 226 | |
| 227 | | if ( $s ) { |
| | 227 | if ( strlen( $s ) ) { |
| 228 | 228 | $status = 'search'; |
| 229 | 229 | $plugins['search'] = array_filter( $plugins['all'], array( $this, '_search_callback' ) ); |
| 230 | 230 | } |
| … |
… |
class WP_Plugins_List_Table extends WP_List_Table { |
| 268 | 268 | } |
| 269 | 269 | |
| 270 | 270 | /** |
| 271 | | * @staticvar string $term |
| | 271 | * @global string $s |
| | 272 | * |
| 272 | 273 | * @param array $plugin |
| 273 | 274 | * @return bool |
| 274 | 275 | */ |
| 275 | 276 | public function _search_callback( $plugin ) { |
| 276 | | static $term = null; |
| 277 | | if ( is_null( $term ) ) |
| 278 | | $term = wp_unslash( $_REQUEST['s'] ); |
| | 277 | global $s; |
| 279 | 278 | |
| 280 | 279 | foreach ( $plugin as $value ) { |
| 281 | | if ( false !== stripos( strip_tags( $value ), $term ) ) { |
| | 280 | if ( is_string( $value ) && false !== stripos( strip_tags( $value ), $s ) ) { |
| 282 | 281 | return true; |
| 283 | 282 | } |
| 284 | 283 | } |
diff --git src/wp-admin/link-manager.php src/wp-admin/link-manager.php
index 5cf80cd..4dc3015 100644
|
|
|
if ( ! current_user_can('manage_links') ) |
| 74 | 74 | |
| 75 | 75 | <div class="wrap nosubsub"> |
| 76 | 76 | <h1><?php echo esc_html( $title ); ?> <a href="link-add.php" class="page-title-action"><?php echo esc_html_x('Add New', 'link'); ?></a> <?php |
| 77 | | if ( !empty($_REQUEST['s']) ) |
| 78 | | printf( '<span class="subtitle">' . __('Search results for “%s”') . '</span>', esc_html( wp_unslash($_REQUEST['s']) ) ); ?> |
| | 77 | if ( isset( $_REQUEST['s'] ) && strlen( $_REQUEST['s'] ) ) { |
| | 78 | /* translators: %s: search keywords */ |
| | 79 | printf( '<span class="subtitle">' . __( 'Search results for “%s”' ) . '</span>', esc_html( wp_unslash( $_REQUEST['s'] ) ) ); |
| | 80 | } |
| | 81 | ?> |
| 79 | 82 | </h1> |
| 80 | 83 | |
| 81 | 84 | <?php |
diff --git src/wp-admin/network/sites.php src/wp-admin/network/sites.php
index a0b699f..a87dfd2 100644
|
|
|
require_once( ABSPATH . 'wp-admin/admin-header.php' ); |
| 288 | 288 | <a href="<?php echo network_admin_url('site-new.php'); ?>" class="page-title-action"><?php echo esc_html_x( 'Add New', 'site' ); ?></a> |
| 289 | 289 | <?php endif; ?> |
| 290 | 290 | |
| 291 | | <?php if ( isset( $_REQUEST['s'] ) && $_REQUEST['s'] ) { |
| | 291 | <?php |
| | 292 | if ( isset( $_REQUEST['s'] ) && strlen( $_REQUEST['s'] ) ) { |
| | 293 | /* translators: %s: search keywords */ |
| 292 | 294 | printf( '<span class="subtitle">' . __( 'Search results for “%s”' ) . '</span>', esc_html( $s ) ); |
| 293 | 295 | } ?> |
| 294 | 296 | </h1> |
diff --git src/wp-admin/network/themes.php src/wp-admin/network/themes.php
index af22af1..29dd9e5 100644
|
|
|
require_once(ABSPATH . 'wp-admin/admin-header.php'); |
| 239 | 239 | |
| 240 | 240 | <div class="wrap"> |
| 241 | 241 | <h1><?php echo esc_html( $title ); if ( current_user_can('install_themes') ) { ?> <a href="theme-install.php" class="page-title-action"><?php echo esc_html_x('Add New', 'theme'); ?></a><?php } |
| 242 | | if ( $s ) |
| 243 | | printf( '<span class="subtitle">' . __('Search results for “%s”') . '</span>', esc_html( $s ) ); ?> |
| | 242 | if ( isset( $_REQUEST['s'] ) && strlen( $_REQUEST['s'] ) ) { |
| | 243 | /* translators: %s: search keywords */ |
| | 244 | printf( '<span class="subtitle">' . __( 'Search results for “%s”' ) . '</span>', esc_html( $s ) ); |
| | 245 | } |
| | 246 | ?> |
| 244 | 247 | </h1> |
| 245 | 248 | |
| 246 | 249 | <?php |
diff --git src/wp-admin/network/users.php src/wp-admin/network/users.php
index f55ea6c..4e56ca3 100644
|
|
|
if ( isset( $_REQUEST['updated'] ) && $_REQUEST['updated'] == 'true' && ! empty( |
| 212 | 212 | <a href="<?php echo network_admin_url('user-new.php'); ?>" class="page-title-action"><?php echo esc_html_x( 'Add New', 'user' ); ?></a><?php |
| 213 | 213 | endif; |
| 214 | 214 | |
| 215 | | if ( !empty( $usersearch ) ) |
| 216 | | printf( '<span class="subtitle">' . __( 'Search results for “%s”' ) . '</span>', esc_html( $usersearch ) ); |
| | 215 | if ( strlen( $usersearch ) ) { |
| | 216 | /* translators: %s: search keywords */ |
| | 217 | printf( '<span class="subtitle">' . __( 'Search results for “%s”' ) . '</span>', esc_html( $usersearch ) ); |
| | 218 | } |
| 217 | 219 | ?> |
| 218 | 220 | </h1> |
| 219 | 221 | |
diff --git src/wp-admin/plugins.php src/wp-admin/plugins.php
index 176f294..a55001e 100644
|
|
|
if ( ! empty( $invalid ) ) { |
| 481 | 481 | <h1><?php echo esc_html( $title ); |
| 482 | 482 | if ( ( ! is_multisite() || is_network_admin() ) && current_user_can('install_plugins') ) { ?> |
| 483 | 483 | <a href="<?php echo self_admin_url( 'plugin-install.php' ); ?>" class="page-title-action"><?php echo esc_html_x('Add New', 'plugin'); ?></a> |
| 484 | | <?php } |
| 485 | | if ( $s ) |
| 486 | | printf( '<span class="subtitle">' . __('Search results for “%s”') . '</span>', esc_html( $s ) ); ?> |
| | 484 | <?php |
| | 485 | } |
| | 486 | |
| | 487 | if ( strlen( $s ) ) { |
| | 488 | /* translators: %s: search keywords */ |
| | 489 | printf( '<span class="subtitle">' . __( 'Search results for “%s”' ) . '</span>', esc_html( $s ) ); |
| | 490 | } |
| | 491 | ?> |
| 487 | 492 | </h1> |
| 488 | 493 | |
| 489 | 494 | <?php |
diff --git src/wp-admin/upload.php src/wp-admin/upload.php
index 65bb790..6e089ac 100644
|
|
|
echo esc_html( $title ); |
| 220 | 220 | if ( current_user_can( 'upload_files' ) ) { ?> |
| 221 | 221 | <a href="media-new.php" class="page-title-action"><?php echo esc_html_x('Add New', 'file'); ?></a><?php |
| 222 | 222 | } |
| 223 | | if ( ! empty( $_REQUEST['s'] ) ) |
| 224 | | printf( '<span class="subtitle">' . __('Search results for “%s”') . '</span>', get_search_query() ); ?> |
| | 223 | if ( isset( $_REQUEST['s'] ) && strlen( $_REQUEST['s'] ) ) { |
| | 224 | /* translators: %s: search keywords */ |
| | 225 | printf( '<span class="subtitle">' . __( 'Search results for “%s”' ) . '</span>', get_search_query() ); |
| | 226 | } |
| | 227 | ?> |
| 225 | 228 | </h1> |
| 226 | 229 | |
| 227 | 230 | <?php |
diff --git src/wp-admin/users.php src/wp-admin/users.php
index e02c394..8bd8c6d 100644
|
|
|
if ( current_user_can( 'create_users' ) ) { ?> |
| 481 | 481 | <a href="user-new.php" class="page-title-action"><?php echo esc_html_x( 'Add Existing', 'user' ); ?></a> |
| 482 | 482 | <?php } |
| 483 | 483 | |
| 484 | | if ( $usersearch ) |
| 485 | | printf( '<span class="subtitle">' . __('Search results for “%s”') . '</span>', esc_html( $usersearch ) ); ?> |
| | 484 | if ( strlen( $usersearch ) ) { |
| | 485 | /* translators: %s: search keywords */ |
| | 486 | printf( '<span class="subtitle">' . __( 'Search results for “%s”' ) . '</span>', esc_html( $usersearch ) ); |
| | 487 | } |
| | 488 | ?> |
| 486 | 489 | </h1> |
| 487 | 490 | |
| 488 | 491 | <?php $wp_list_table->views(); ?> |