WordPress.org

Make WordPress Core

Ticket #37495: uploader-filter.diff

File uploader-filter.diff, 1.2 KB (added by DavidAnderson, 4 years ago)

Re-add the install_plugins_upload action

  • wp-admin/plugin-install.php

     
    130130 * Output the upload plugin form on every plugin install screen, so it can be
    131131 * displayed via JavaScript rather then opening up the devoted upload plugin page.
    132132 */
    133 install_plugins_upload(); ?>
     133 
     134/**
     135 * Fires after the plugins list table in each tab of the Install Plugins screen.
     136 *
     137 * @since 2.7
     138 *
     139 */
     140do_action('install_plugins_upload'); ?>
    134141</div>
    135142
    136143<?php
  • wp-admin/includes/admin-filters.php

     
    7070
    7171// Plugin Install hooks.
    7272add_action( 'install_plugins_featured',               'install_dashboard' );
     73add_action( 'install_plugins_upload',                 'install_plugins_upload' );
    7374add_action( 'install_plugins_search',                 'display_plugins_table' );
    7475add_action( 'install_plugins_popular',                'display_plugins_table' );
    7576add_action( 'install_plugins_recommended',            'display_plugins_table' );