WordPress.org

Make WordPress Core

Ticket #27440: 27440-return-banners.diff

File 27440-return-banners.diff, 643 bytes (added by tellyworth, 3 years ago)

Asks the API to include the 'banners' item. Doesn't do anything with it yet.

  • wp-admin/includes/plugin-install.php

     
    311311function install_plugin_information() { 
    312312        global $tab; 
    313313 
    314         $api = plugins_api( 'plugin_information', array( 'slug' => wp_unslash( $_REQUEST['plugin'] ), 'is_ssl' => is_ssl() ) ); 
    315  
     314        $api = plugins_api( 'plugin_information', array( 'slug' => wp_unslash( $_REQUEST['plugin'] ), 'is_ssl' => is_ssl(), 'fields' => array( 'banners' => true ) ) ); 
     315  
    316316        if ( is_wp_error( $api ) ) 
    317317                wp_die( $api ); 
    318318