Ticket #37495: uploader-filter3.diff
File uploader-filter3.diff, 1.8 KB (added by , 9 years ago) |
---|
-
wp-admin/plugin-install.php
64 64 * 65 65 * @since 2.7.0 66 66 */ 67 do_action( "install_plugins_pre_$tab" ); 67 do_action( "install_plugins_pre_upload" ); 68 if ( $tab !== 'upload' ) do_action( "install_plugins_pre_$tab" ); 68 69 69 70 get_current_screen()->add_help_tab( array( 70 71 'id' => 'overview', … … 130 131 * Output the upload plugin form on every plugin install screen, so it can be 131 132 * displayed via JavaScript rather then opening up the devoted upload plugin page. 132 133 */ 133 install_plugins_upload(); ?> 134 135 /** 136 * Fires after the plugins list table in each tab of the Install Plugins screen. 137 * 138 * @since 2.7 139 * 140 */ 141 do_action('install_plugins_upload'); ?> 134 142 </div> 135 143 136 144 <?php … … 149 157 * 150 158 * @param int $paged The current page number of the plugins list table. 151 159 */ 152 do_action( "install_plugins_$tab", $paged ); ?>160 if ( $tab !== 'upload' ) do_action( "install_plugins_$tab", $paged ); ?> 153 161 154 162 <span class="spinner"></span> 155 163 </div> -
wp-admin/includes/admin-filters.php
70 70 71 71 // Plugin Install hooks. 72 72 add_action( 'install_plugins_featured', 'install_dashboard' ); 73 add_action( 'install_plugins_upload', 'install_plugins_upload' ); 73 74 add_action( 'install_plugins_search', 'display_plugins_table' ); 74 75 add_action( 'install_plugins_popular', 'display_plugins_table' ); 75 76 add_action( 'install_plugins_recommended', 'display_plugins_table' );