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:
parent
d3cb0d27ff
commit
fe150b9ef2
|
@ -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' ) ); ?>
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue