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

Props kraftbj. Fixes #31968.

git-svn-id: https://develop.svn.wordpress.org/trunk@32122 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz 2015-04-14 05:44:08 +00:00
parent deaa16216d
commit f3033a9f5a
1 changed files with 1 additions and 1 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' ) ); ?>