Changeset 32106
- Timestamp:
- 04/10/2015 09:07:42 PM (10 years ago)
- Location:
- trunk/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/css/press-this.css
r32092 r32106 1252 1252 } 1253 1253 1254 .alert.is-hidden {1255 display: none;1256 }1257 1254 .alert.is-error:before { 1258 1255 background: red; -
trunk/src/wp-admin/includes/class-wp-press-this.php
r32102 r32106 15 15 class WP_Press_This { 16 16 17 // Used to trigger the bookmarklet update notice. 18 public $version = 8; 19 17 20 private $images = array(); 18 21 … … 39 42 public function site_settings() { 40 43 return array( 41 /*42 * Used to trigger the bookmarklet update notice. Needs to be set here and in43 * get_shortcut_link() in wp-includes/link-template.php.44 */45 'version' => '8',46 47 44 /** 48 45 * Filter whether or not Press This should redirect the user in the parent window upon save. … … 1324 1321 <div class="editor-wrapper"> 1325 1322 <div class="alerts" role="alert" aria-live="assertive" aria-relevant="all" aria-atomic="true"> 1326 <p class="alert is-notice is-hidden should-upgrade-bookmarklet"> 1327 <?php printf( __( 'You should upgrade <a href="%s" target="_blank">your bookmarklet</a> to the latest version!' ), admin_url( 'tools.php' ) ); ?> 1328 </p> 1323 <?php 1324 1325 if ( empty( $data['v'] ) || $this->version > $data['v'] ) { 1326 ?> 1327 <p class="alert is-notice"> 1328 <?php printf( __( 'You should upgrade <a href="%s" target="_blank">your bookmarklet</a> to the latest version!' ), admin_url( 'tools.php' ) ); ?> 1329 </p> 1330 <?php 1331 } 1332 1333 ?> 1329 1334 </div> 1330 1335 -
trunk/src/wp-admin/js/press-this.js
r32098 r32106 367 367 } ); 368 368 } 369 370 // Prompt user to upgrade their bookmarklet if there is a version mismatch.371 if ( data.v && settings.version && ( data.v + '' ) !== ( settings.version + '' ) ) {372 $( '.should-upgrade-bookmarklet' ).removeClass( 'is-hidden' );373 }374 369 } 375 370 -
trunk/src/wp-includes/link-template.php
r32042 r32106 2601 2601 global $is_IE, $wp_version; 2602 2602 2603 $bookmarklet_version = '8'; 2603 include_once( ABSPATH . 'wp-admin/includes/class-wp-press-this.php' ); 2604 $bookmarklet_version = $GLOBALS['wp_press_this']->version; 2604 2605 $link = ''; 2605 2606
Note: See TracChangeset
for help on using the changeset viewer.