From 3295857ed9988ceadd3b66e7fc925ece7e0f1728 Mon Sep 17 00:00:00 2001 From: Luke Carbis Date: Fri, 2 May 2014 11:51:48 +1000 Subject: [PATCH] Fix error when installing extensions from Network Admin --- includes/extensions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/extensions.php b/includes/extensions.php index 8eca89485..3b7de0c1c 100644 --- a/includes/extensions.php +++ b/includes/extensions.php @@ -130,7 +130,7 @@ function get_affiliate() { * @return stdClass */ function filter_plugin_api_info( $false, $action, $args ) { - if ( admin_url( 'admin.php?page=wp_stream_extensions' ) !== wp_get_referer() ) { + if ( self_admin_url( 'admin.php?page=wp_stream_extensions' ) !== wp_get_referer() ) { return $false; } elseif ( 'plugin_information' == $action && empty( $false ) ) { /** @internal The querying the api using the filter endpoint doesn't seem to work. For now I'm looping through all the extensions to get the api info for using WordPress install api */