X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/e9d988989fe37ab8c5f903e47fbe36e6e00dc51f..b3ddbea8a296025a672b3c3ddca158dc51ed8080:/wp-admin/plugins.php?ds=inline diff --git a/wp-admin/plugins.php b/wp-admin/plugins.php index f64d51b6..76c6377a 100644 --- a/wp-admin/plugins.php +++ b/wp-admin/plugins.php @@ -59,7 +59,7 @@ if ( $action ) { update_option('recently_activated', $recent); } if ( isset($_GET['from']) && 'import' == $_GET['from'] ) { - 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 + 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 } else { wp_redirect( self_admin_url("plugins.php?activate=true&plugin_status=$status&paged=$page&s=$s") ); // overrides the ?error=true one above } @@ -137,10 +137,7 @@ if ( $action ) { wp_die($valid); if ( ! WP_DEBUG ) { - if ( defined('E_RECOVERABLE_ERROR') ) - 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); - else - error_reporting(E_CORE_ERROR | E_CORE_WARNING | E_COMPILE_ERROR | E_ERROR | E_WARNING | E_PARSE | E_USER_ERROR | E_USER_WARNING); + 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 ); } @ini_set('display_errors', true); //Ensure that Fatal errors are displayed. @@ -316,12 +313,6 @@ if ( $action ) { $wp_list_table->prepare_items(); -$total_pages = $wp_list_table->get_pagination_arg( 'total_pages' ); -if ( $pagenum > $total_pages && $total_pages > 0 ) { - wp_redirect( add_query_arg( 'paged', $total_pages ) ); - exit; -} - wp_enqueue_script('plugin-install'); add_thickbox(); @@ -390,7 +381,7 @@ if ( !empty($invalid) )

- + ' . __('Search results for “%s”') . '', esc_html( $s ) ); ?> @@ -402,7 +393,7 @@ if ( $s )
-search_box( __( 'Search Plugins' ), 'plugin' ); ?> +search_box( __( 'Search Installed Plugins' ), 'plugin' ); ?>