Make WordPress Core


Ignore:
Timestamp:
08/05/2019 11:06:27 AM (7 years ago)
Author:
SergeyBiryukov
Message:

Plugins: Use include_once for wp-admin/includes/plugin-install.php in WP_Plugin_Install_List_Table::prepare_items().

This brings consistency with the other instances where the file is included, and allows for reusing its functions in custom code.

Props engelen, desrosj.
Fixes #38874.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-plugin-install-list-table.php

    r45185 r45751  
    8686         */
    8787        public function prepare_items() {
    88                 include( ABSPATH . 'wp-admin/includes/plugin-install.php' );
     88                include_once( ABSPATH . 'wp-admin/includes/plugin-install.php' );
    8989
    9090                global $tabs, $tab, $paged, $type, $term;
Note: See TracChangeset for help on using the changeset viewer.