From 34732f5a804b9d3c0a72f0a07e759803c8ea69e1 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Tue, 13 Oct 2015 02:05:24 +0000 Subject: [PATCH] Replace `get_bloginfo( 'wpurl' )` with `admin_url()` in plugin editor. Use `add_query_arg()` instead of constructing the URL manually. Props johnbillion. See #34280. Built from https://develop.svn.wordpress.org/trunk@35107 git-svn-id: http://core.svn.wordpress.org/trunk@35072 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/plugin-editor.php | 10 ++++++++-- wp-includes/version.php | 2 +- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/wp-admin/plugin-editor.php b/wp-admin/plugin-editor.php index d1b12e8b39..1558164096 100644 --- a/wp-admin/plugin-editor.php +++ b/wp-admin/plugin-editor.php @@ -171,8 +171,14 @@ default:

fatal error.') ?>

- + if ( wp_verify_nonce( $_GET['_error_nonce'], 'plugin-activation-error_' . $file ) ) { + $iframe_url = add_query_arg( array( + 'action' => 'error_scrape', + 'plugin' => urlencode( $file ), + '_wpnonce' => urlencode( $_GET['_error_nonce'] ), + ), admin_url( 'plugins.php' ) ); + ?> +
diff --git a/wp-includes/version.php b/wp-includes/version.php index fcb46cebc7..151bd81047 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.4-alpha-35106'; +$wp_version = '4.4-alpha-35107'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.