Changeset 32106 for trunk/src/wp-admin/includes/class-wp-press-this.php
- Timestamp:
- 04/10/2015 09:07:42 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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
Note: See TracChangeset
for help on using the changeset viewer.