Ticket #18724: 18724.diff
File 18724.diff, 2.0 KB (added by , 9 years ago) |
---|
-
src/wp-admin/includes/class-wp-plugin-install-list-table.php
273 273 return; 274 274 } 275 275 276 if ( 'top' == $which ) { ?> 276 if ( 'top' == $which ) { 277 wp_nonce_field( 'bulk-' . $this->_args['plural'] ); ?> 277 278 <div class="tablenav top"> 278 279 <div class="alignleft actions"> 279 280 <?php -
src/wp-admin/includes/plugin-install.php
237 237 238 238 if ( current_filter() == 'install_plugins_favorites' && empty( $_GET['user'] ) && ! get_user_option( 'wporg_favorites' ) ) 239 239 return; 240 240 ?> 241 <form id="plugin-filter" action="" method="post"> 242 <?php 241 243 $wp_list_table->display(); 242 } 244 ?> 245 </form> 246 <?php } 243 247 add_action( 'install_plugins_search', 'display_plugins_table' ); 244 248 add_action( 'install_plugins_popular', 'display_plugins_table' ); 245 249 add_action( 'install_plugins_new', 'display_plugins_table' ); -
src/wp-admin/plugin-install.php
24 24 25 25 $wp_list_table = _get_list_table('WP_Plugin_Install_List_Table'); 26 26 $pagenum = $wp_list_table->get_pagenum(); 27 28 if ( ! empty($_REQUEST['_wp_http_referer']) ) { 29 $location = remove_query_arg( array('_wp_http_referer', '_wpnonce'), wp_unslash($_SERVER['REQUEST_URI']) ); 30 31 if ( ! empty( $_REQUEST['paged'] ) ) 32 $location = add_query_arg( 'paged', (int) $_REQUEST['paged'] ); 33 34 wp_redirect( $location ); 35 exit; 36 } 37 27 38 $wp_list_table->prepare_items(); 28 39 29 40 $title = __( 'Add Plugins' );