diff --git a/wp-admin/includes/class-wp-press-this.php b/wp-admin/includes/class-wp-press-this.php index 273c1ab1f1..bc5724256b 100644 --- a/wp-admin/includes/class-wp-press-this.php +++ b/wp-admin/includes/class-wp-press-this.php @@ -718,7 +718,11 @@ class WP_Press_This { * making PT fully backward compatible with the older bookmarklet. */ if ( empty( $_POST ) && ! empty( $data['u'] ) ) { - $data = $this->source_data_fetch_fallback( $data['u'], $data ); + if ( isset( $_GET['_wpnonce'] ) && wp_verify_nonce( $_GET['_wpnonce'], 'scan-site' ) ) { + $data = $this->source_data_fetch_fallback( $data['u'], $data ); + } else { + $data['errors'] = 'missing nonce'; + } } else { foreach ( array( '_images', '_embeds' ) as $type ) { if ( empty( $_POST[ $type ] ) ) { @@ -1235,7 +1239,7 @@ class WP_Press_This { $site_data = array( 'v' => ! empty( $data['v'] ) ? $data['v'] : '', 'u' => ! empty( $data['u'] ) ? $data['u'] : '', - 'hasData' => ! empty( $data ), + 'hasData' => ! empty( $data ) && ! isset( $data['errors'] ), ); if ( ! empty( $images ) ) { @@ -1367,8 +1371,9 @@ class WP_Press_This {
- + +
diff --git a/wp-includes/version.php b/wp-includes/version.php index 7db8d5c43a..859d2a92f0 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.8-alpha-40183'; +$wp_version = '4.8-alpha-40195'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.