Press This: do not show the bookmarklet upgrade notice when accessing directly press-this.php.

Props kraftbj. Fixes #31968.
Built from https://develop.svn.wordpress.org/trunk@32122


git-svn-id: http://core.svn.wordpress.org/trunk@32101 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrew Ozz 2015-04-14 05:45:28 +00:00
parent d3cb0d27ff
commit fe150b9ef2
2 changed files with 2 additions and 2 deletions

View File

@ -1322,7 +1322,7 @@ class WP_Press_This {
<div class="alerts" role="alert" aria-live="assertive" aria-relevant="all" aria-atomic="true">
<?php
if ( empty( $data['v'] ) || $this->version > $data['v'] ) {
if ( isset( $data['v'] ) && $this->version > $data['v'] ) {
?>
<p class="alert is-notice">
<?php printf( __( 'You should upgrade <a href="%s" target="_blank">your bookmarklet</a> to the latest version!' ), admin_url( 'tools.php' ) ); ?>

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.2-beta4-32121';
$wp_version = '4.2-beta4-32122';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.