Make WordPress Core


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/plugins.php

    r17807 r17927  
    6060            }
    6161            if ( isset($_GET['from']) && 'import' == $_GET['from'] ) {
    62                 wp_redirect( self_admin_url("import.php?import=" . str_replace('-importer', '', dirname($plugin))) ); // overrides the ?error=true one above and redirects to the Imports page, striping the -importer suffix
     62                wp_redirect( self_admin_url("import.php?import=" . str_replace('-importer', '', dirname($plugin))) ); // overrides the ?error=true one above and redirects to the Imports page, stripping the -importer suffix
    6363            } else {
    6464                wp_redirect( self_admin_url("plugins.php?activate=true&plugin_status=$status&paged=$page&s=$s") ); // overrides the ?error=true one above
     
    138138
    139139            if ( ! WP_DEBUG ) {
    140                 if ( defined('E_RECOVERABLE_ERROR') )
    141                     error_reporting(E_CORE_ERROR | E_CORE_WARNING | E_COMPILE_ERROR | E_ERROR | E_WARNING | E_PARSE | E_USER_ERROR | E_USER_WARNING | E_RECOVERABLE_ERROR);
    142                 else
    143                     error_reporting(E_CORE_ERROR | E_CORE_WARNING | E_COMPILE_ERROR | E_ERROR | E_WARNING | E_PARSE | E_USER_ERROR | E_USER_WARNING);
     140                error_reporting( E_CORE_ERROR | E_CORE_WARNING | E_COMPILE_ERROR | E_ERROR | E_WARNING | E_PARSE | E_USER_ERROR | E_USER_WARNING | E_RECOVERABLE_ERROR );
    144141            }
    145142
     
    317314$wp_list_table->prepare_items();
    318315
    319 $total_pages = $wp_list_table->get_pagination_arg( 'total_pages' );
    320 if ( $pagenum > $total_pages && $total_pages > 0 ) {
    321     wp_redirect( add_query_arg( 'paged', $total_pages ) );
    322     exit;
    323 }
    324 
    325316wp_enqueue_script('plugin-install');
    326317add_thickbox();
     
    391382<h2><?php echo esc_html( $title );
    392383if ( ( ! is_multisite() || is_network_admin() ) && current_user_can('install_plugins') ) { ?>
    393 <a href="<?php echo self_admin_url( 'plugin-install.php' ); ?>" class="button add-new-h2"><?php echo esc_html_x('Add New', 'plugin'); ?></a>
     384<a href="<?php echo self_admin_url( 'plugin-install.php' ); ?>" class="add-new-h2"><?php echo esc_html_x('Add New', 'plugin'); ?></a>
    394385<?php }
    395386if ( $s )
     
    403394<form method="post" action="">
    404395
    405 <?php $wp_list_table->search_box( __( 'Search Plugins' ), 'plugin' ); ?>
     396<?php $wp_list_table->search_box( __( 'Search Installed Plugins' ), 'plugin' ); ?>
    406397
    407398<input type="hidden" name="plugin_status" value="<?php echo esc_attr($status) ?>" />
Note: See TracChangeset for help on using the changeset viewer.