Ticket #15634: 15634.warn-on-update.diff
| File 15634.warn-on-update.diff, 798 bytes (added by duck_, 2 years ago) |
|---|
-
trunk/wordpress-importer.php
903 903 echo '<div class="wrap">'; 904 904 screen_icon(); 905 905 echo '<h2>' . __( 'Import WordPress', 'wordpress-importer' ) . '</h2>'; 906 907 $updates = get_plugin_updates(); 908 $basename = plugin_basename(__FILE__); 909 if ( isset( $updates[$basename] ) ) { 910 $update = $updates[$basename]; 911 echo '<div class="error"><p><strong>'; 912 printf( __( 'A new version (%s) of this importer is available. Please upgrade to ensure compatibility with newer export files.', 'wordpress-importer' ), $update->update->new_version ); 913 echo '</strong></p></div>'; 914 } 906 915 } 907 916 908 917 // Close div.wrap