Skip to content
Permalink
Browse files

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.

git-svn-id: https://develop.svn.wordpress.org/trunk@45751 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information...
SergeyBiryukov committed Aug 5, 2019
1 parent 3f2e265 commit c68927e5099442df515ccee325b594592c03abd4
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/wp-admin/includes/class-wp-plugin-install-list-table.php
@@ -85,7 +85,7 @@ protected function get_installed_plugin_slugs() {
* @global string $term
*/
public function prepare_items() {
include( ABSPATH . 'wp-admin/includes/plugin-install.php' );
include_once( ABSPATH . 'wp-admin/includes/plugin-install.php' );
global $tabs, $tab, $paged, $type, $term;

0 comments on commit c68927e

Please sign in to comment.
You can’t perform that action at this time.