Changes from branches/3.1/wp-admin/plugins.php at r17807 to trunk/wp-admin/plugins.php at r17927
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/plugins.php
r17807 r17927 60 60 } 61 61 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, strip ing the -importer suffix62 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 63 63 } else { 64 64 wp_redirect( self_admin_url("plugins.php?activate=true&plugin_status=$status&paged=$page&s=$s") ); // overrides the ?error=true one above … … 138 138 139 139 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 ); 144 141 } 145 142 … … 317 314 $wp_list_table->prepare_items(); 318 315 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 325 316 wp_enqueue_script('plugin-install'); 326 317 add_thickbox(); … … 391 382 <h2><?php echo esc_html( $title ); 392 383 if ( ( ! is_multisite() || is_network_admin() ) && current_user_can('install_plugins') ) { ?> 393 <a href="<?php echo self_admin_url( 'plugin-install.php' ); ?>" class=" buttonadd-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> 394 385 <?php } 395 386 if ( $s ) … … 403 394 <form method="post" action=""> 404 395 405 <?php $wp_list_table->search_box( __( 'Search Plugins' ), 'plugin' ); ?>396 <?php $wp_list_table->search_box( __( 'Search Installed Plugins' ), 'plugin' ); ?> 406 397 407 398 <input type="hidden" name="plugin_status" value="<?php echo esc_attr($status) ?>" />
Note: See TracChangeset
for help on using the changeset viewer.