Make WordPress Core


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/class-wp-plugins-list-table.php

    r17807 r18254  
    1010class WP_Plugins_List_Table extends WP_List_Table {
    1111
    12     function WP_Plugins_List_Table() {
     12    function __construct() {
    1313        global $status, $page;
    1414
     
    2222            update_user_meta( get_current_user_id(), 'plugins_last_view', $status );
    2323
     24
     25        if ( isset($_REQUEST['s']) )
     26            $_SERVER['REQUEST_URI'] = add_query_arg('s', stripslashes($_REQUEST['s']) );
     27
    2428        $page = $this->get_pagenum();
    2529
    26         parent::WP_List_Table( array(
     30        parent::__construct( array(
    2731            'plural' => 'plugins',
    2832        ) );
    2933    }
    30    
     34
    3135    function get_table_classes() {
    3236        return array( 'widefat', $this->_args['plural'] );
     
    288292            submit_button( __( 'Clear List' ), 'secondary', 'clear-recent-list', false );
    289293        elseif ( 'top' == $which && 'mustuse' == $status )
    290             echo '<p>' . __( 'Files in the <code>/wp-content/mu-plugins</code> directory are executed automatically.' ) . '</p>';
     294            echo '<p>' . sprintf( __( 'Files in the <code>%s</code> directory are executed automatically.' ), str_replace( ABSPATH, '/', WPMU_PLUGIN_DIR ) ) . '</p>';
    291295        elseif ( 'top' == $which && 'dropins' == $status )
    292             echo '<p>' . __( 'Drop-ins are advanced plugins in the <code>/wp-content</code> directory that replace WordPress functionality when present.' ) . '</p>';
     296            echo '<p>' . sprintf( __( 'Drop-ins are advanced plugins in the <code>%s</code> directory that replace WordPress functionality when present.' ), str_replace( ABSPATH, '', WP_CONTENT_DIR ) ) . '</p>';
    293297
    294298        echo '</div>';
Note: See TracChangeset for help on using the changeset viewer.