Changeset 35808
- Timestamp:
- 12/06/2015 10:22:11 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-plugins-list-table.php
r35445 r35808 317 317 global $plugins; 318 318 319 if ( !empty( $plugins['all'] ) ) 319 if ( ! empty( $_REQUEST['s'] ) ) { 320 $s = esc_html( $_REQUEST['s'] ); 321 322 printf( __( 'No plugins found for “%s”.' ), $s ); 323 324 // We assume that somebody who can install plugins in multisite is experienced enough to not need this helper link. 325 if ( ! is_multisite() && current_user_can( 'install_plugins' ) ) { 326 echo ' <a href="' . esc_url( admin_url( 'plugin-install.php?tab=search&s=' . urlencode( $s ) ) ) . '">' . __( 'Search for plugins in the WordPress Plugin Directory.' ) . '</a>'; 327 } 328 } elseif ( ! empty( $plugins['all'] ) ) 320 329 _e( 'No plugins found.' ); 321 330 else
Note: See TracChangeset
for help on using the changeset viewer.