Make WordPress Core

Ticket #31968: 31968.diff

File 31968.diff, 713 bytes (added by kraftbj, 10 years ago)

Changes empty check for isset so the notice does not display with no version is indicated.

  • src/wp-admin/includes/class-wp-press-this.php

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