]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-admin/about.php
WordPress 3.7.1
[autoinstalls/wordpress.git] / wp-admin / about.php
index 3fa52e7912d0294e7b8f0af57deba3d7f75dadbd..c0ef6c60361e93504b5dd0b69c01a8dc782e90f1 100644 (file)
@@ -7,19 +7,21 @@
  */
 
 /** WordPress Administration Bootstrap */
  */
 
 /** WordPress Administration Bootstrap */
-require_once( './admin.php' );
+require_once( dirname( __FILE__ ) . '/admin.php' );
 
 $title = __( 'About' );
 
 list( $display_version ) = explode( '-', $wp_version );
 
 
 $title = __( 'About' );
 
 list( $display_version ) = explode( '-', $wp_version );
 
+wp_enqueue_script( 'about' );
+
 include( ABSPATH . 'wp-admin/admin-header.php' );
 ?>
 <div class="wrap about-wrap">
 
 <h1><?php printf( __( 'Welcome to WordPress %s' ), $display_version ); ?></h1>
 
 include( ABSPATH . 'wp-admin/admin-header.php' );
 ?>
 <div class="wrap about-wrap">
 
 <h1><?php printf( __( 'Welcome to WordPress %s' ), $display_version ); ?></h1>
 
-<div class="about-text"><?php printf( __( 'Thank you for updating to the latest version! WordPress %s is already making your website better, faster, and more attractive, just like you!' ), $display_version ); ?></div>
+<div class="about-text"><?php echo str_replace( '3.7', $display_version, __( 'Thank you for updating to WordPress 3.7! You might not notice a thing, and we&#8217;re okay with that.' ) ); ?></div>
 
 <div class="wp-badge"><?php printf( __( 'Version %s' ), $display_version ); ?></div>
 
 
 <div class="wp-badge"><?php printf( __( 'Version %s' ), $display_version ); ?></div>
 
@@ -33,90 +35,109 @@ include( ABSPATH . 'wp-admin/admin-header.php' );
        </a>
 </h2>
 
        </a>
 </h2>
 
-<div class="changelog">
-       <h3><?php _e( 'Live Theme Previews' ); ?></h3>
-
-       <div class="feature-section images-stagger-right">
-               <img src="<?php echo esc_url( admin_url( 'images/screenshots/theme-customizer.png' ) ); ?>" class="image-50" />
-               <h4><?php _e( 'Try on New Themes' ); ?></h4>
-               <p><?php _e( 'Gone are the days of rushing to update your header, background, and the like as soon as you activate a new theme. You can now customize these options <strong>before</strong> activating a new theme. Note: this feature is available for installed themes only.' ); ?></p>
-
-               <h4><?php _e( 'Customize Current Theme' ); ?></h4>
-               <p><?php _e( 'Satisfy your curiosity and try on a fresh coat of paint &mdash; you can also use the live preview mode to customize your current theme. Look for the Customize link on the Themes screen.' ); ?></p>
-       </div>
+<div class="changelog point-releases">
+       <h3><?php echo _n( 'Maintenance Release', 'Maintenance Releases', 1 ); ?></h3>
+       <p><?php printf( _n( '<strong>Version %1$s</strong> addressed %2$s bug.',
+               '<strong>Version %1$s</strong> addressed %2$s bugs.', 11 ), '3.7.1', number_format_i18n( 11 ) ); ?>
+               <?php printf( __( 'For more information, see <a href="%s">the release notes</a>.' ), 'http://codex.wordpress.org/Version_3.7.1' ); ?>
+       </p>
 </div>
 
 <div class="changelog">
 </div>
 
 <div class="changelog">
-       <h3><?php _e( 'Custom Headers' ); ?></h3>
-
-       <div class="feature-section">
-               <h4><?php _e( 'Flexible Sizes' ); ?></h4>
-               <p><?php _e( 'You can decide for yourself how tall or wide your custom header image should be. From now on, themes will provide a recommended image size for custom headers rather than a fixed requirement. Note: this feature requires <a href="http://codex.wordpress.org/Custom_Headers">theme support</a>.' ); ?></p>
-               <div class="three-col-images">
-                       <img src="<?php echo esc_url( admin_url( 'images/screenshots/flex-header-1.png' ) ); ?>" class="image-30 first-feature" />
-                       <img src="<?php echo esc_url( admin_url( 'images/screenshots/flex-header-2.png' ) ); ?>" class="image-30" />
-                       <img src="<?php echo esc_url( admin_url( 'images/screenshots/flex-header-3.png' ) ); ?>" class="image-30 last-feature" />
-               </div>
-       </div>
+       <h3><?php _e( 'Background Updates' ); ?></h3>
 
 
-       <div class="feature-section images-stagger-right">
-               <img src="<?php echo esc_url( admin_url( 'images/screenshots/flex-header-media-library.png' ) ); ?>" class="image-50" />
-               <h4><?php _e( 'Choose from Media Library' ); ?></h4>
-               <p><?php _e( 'Tired of re-uploading the same custom header image every time you check out a new theme? Now you can choose header images from your media library for easier customization.' ); ?></p>
+       <div class="feature-section col three-col about-updates">
+               <div class="col-1">
+                       <h4><?php _e( 'Updates While You Sleep' ); ?></h4>
+                       <p><?php _e( 'With WordPress 3.7, you don&#8217;t have to lift a finger to apply maintenance and security updates. Most sites are now able to automatically apply these updates in the background, though some configurations may not allow it.' ); ?></p>
+               </div>
+               <div class="col-2">
+                       <img alt="" src="<?php echo admin_url( 'images/about-updates-2x.png' ); ?>" />
+               </div>
+               <div class="col-3 last-feature">
+                       <h4><?php _e( 'More Reliable Than Ever' ); ?></h4>
+                       <p><?php _e( 'The update process has been made even more reliable and secure, with dozens of new checks and safeguards.' ); ?></p>
+                       <p><?php _e( 'You&#8217;ll still need to click &#8220;Update Now&#8221; once WordPress 3.8 is released, but we&#8217;ve never had more confidence in that beautiful blue button.' ); ?></p>
+               </div>
+               <?php
+               if ( current_user_can( 'update_core' ) ) {
+                       $future_minor_update = (object) array(
+                               'current'       => $wp_version . '.1.next.minor',
+                               'version'       => $wp_version . '.1.next.minor',
+                               'php_version'   => $required_php_version,
+                               'mysql_version' => $required_mysql_version,
+                       );
+                       require_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';
+                       $updater = new WP_Automatic_Updater;
+                       $can_auto_update = wp_http_supports( array( 'ssl' ) ) && $updater->should_update( 'core', $future_minor_update, ABSPATH );
+
+                       if ( $can_auto_update ) {
+                               echo '<p class="about-auto-update cool">' . __( 'This site <strong>is</strong> able to apply these updates automatically. Cool!' ). '</p>';
+
+                       // If the updater is disabled entirely, don't show them anything.
+                       } elseif ( ! $updater->is_disabled() ) {
+                               echo '<p class="about-auto-update">';
+                               // If this is is filtered to false, they won't get emails, so don't claim we will.
+                               // Assumption: If the user can update core, they can see what the admin email is.
+
+                               /** This filter is documented in wp-admin/includes/class-wp-upgrader.php */
+                               if ( apply_filters( 'send_core_update_notification_email', true, $future_minor_update ) ) {
+                                       printf( __( 'This site <strong>is not</strong> able to apply these updates automatically. But we&#8217;ll email %s when there is a new security release.' ), esc_html( get_site_option( 'admin_email' ) ) );
+                               } else {
+                                       _e( 'This site <strong>is not</strong> able to apply these updates automatically.' );
+                               }
+                               echo '</p>';
+                       }
+               }
+               ?>
        </div>
 </div>
 
        </div>
 </div>
 
-<div class="changelog">
-       <h3><?php _e( 'Twitter Embeds' ); ?></h3>
-
-       <div class="feature-section images-stagger-right">
-               <img src="<?php echo esc_url( admin_url( 'images/screenshots/twitter-embed-1.png' ) ); ?>" class="image-30" />
-               <img src="<?php echo esc_url( admin_url( 'images/screenshots/twitter-embed-2.png' ) ); ?>" class="image-30" />
-               <h4><?php _e( 'Share Tweets with Style' ); ?></h4>
-               <p><?php _e( 'You can now embed individual tweets in posts. It includes action links that allow readers to reply to, retweet, and favorite the tweet without leaving your site. Just paste a tweet URL on its own line.' ); ?></p>
-               <p><?php printf( __( 'This works with URLs from some other sites, too. For more, see the Codex article on <a href="%s">Embeds</a>.' ), __( 'http://codex.wordpress.org/Embeds' ) ); ?></p>
-       </div>
+<div class="changelog about-passwords">
+       <h3><?php _e( 'Create Stronger Passwords' ); ?></h3>
 
 
+       <div class="feature-section col two-col">
+               <div>
+                       <p><?php _e( 'Your password is your site&#8217;s first line of defense. It&#8217;s best to create passwords that are complex, long, and unique. To that end, our password meter has been updated in WordPress 3.7 to recognize common mistakes that can weaken your password: dates, names, keyboard patterns (123456789), and even pop culture references.' ); ?></p>
+                       <p><strong><?php _e( 'Try it out on the right.' ); ?></strong></p>
+               </div>
+               <div class="last-feature about-password-meter">
+                       <input type="password" id="pass" size="25" value="" />
+                       <p id="pass-strength-result" ><?php _e( 'Strength indicator' ); ?></p>
+                       <?php printf( __( 'Getting the urge to <a href="%s">change your password</a>?' ), esc_url( self_admin_url( 'profile.php' ) ) ); ?>
+               </div>
+       </div>
 </div>
 
 </div>
 
-
 <div class="changelog">
 <div class="changelog">
-       <h3><?php _e( 'Better Captions' ); ?></h3>
-
-       <div class="feature-section images-stagger-right">
-               <img src="<?php echo esc_url( admin_url( 'images/screenshots/captions-1.png' ) ); ?>" class="image-30" />
-               <img src="<?php echo esc_url( admin_url( 'images/screenshots/captions-2.png' ) ); ?>" class="image-30" />
-               <h4><?php _e( 'HTML Support' ); ?></h4>
-               <p><?php _e( 'Basic HTML support has been added to the caption field in the image uploader. This allows you to add links &mdash; great for photo credits or licensing details &mdash; and basic formatting such as bold and italicized text.' ); ?></p>
+       <div class="feature-section col two-col">
+               <div>
+                       <h3><?php _e( 'Improved Search Results' ); ?></h3>
+                       <p><img alt="" src="<?php echo admin_url( 'images/about-search-2x.png' ); ?>" /><?php _e( 'Search results are now ordered by how well the search query matches a post, instead of ordered only by date. For example, when your search terms match a post title, that result will be pushed to the top.' ); ?></p>
+               </div>
+               <div class="last-feature">
+                       <h3><?php _e( 'Better Global Support' ); ?></h3>
+                       <p><img alt="" src="<?php echo admin_url( 'images/about-globe-2x.png' ); ?>" /><?php _e( 'Localized versions of WordPress will receive faster and more complete translations. WordPress 3.7 adds support for automatically installing the right language files and keeping them up to date.' ); ?></p>
+               </div>
        </div>
 </div>
 
 <div class="changelog">
        <h3><?php _e( 'Under the Hood' ); ?></h3>
 
        </div>
 </div>
 
 <div class="changelog">
        <h3><?php _e( 'Under the Hood' ); ?></h3>
 
-       <div class="feature-section three-col">
+       <div class="feature-section col three-col">
                <div>
                <div>
-                       <h4><?php _e( 'Faster WP_Query' ); ?></h4>
-                       <p><?php _e( 'Post queries have been optimized to improve performance, especially for sites with large databases.' ); ?></p>
-
-                       <h4><?php _e( 'Faster Translations' ); ?></h4>
-                       <p><?php _e( 'The number of strings loaded on the front end was greatly reduced, resulting in faster front page load times for localized installations.' ); ?> <?php _e( 'Also, better support for East Asian languages, right-to-left languages, theme translations, and more.' ); ?></p>
+                       <h4><?php _e( 'More Background Updates (Experimental)' ); ?></h4>
+                       <p><?php _e( 'Want WordPress to always update automatically, even for major feature releases? Want to always keep a certain plugin up to date in the background? WordPress 3.7 comes with fine-grained update controls for developers and systems administrators.' ); ?></p>
                </div>
                <div>
                </div>
                <div>
-                       <h4><?php _e( 'Themes API' ); ?></h4>
-                       <p><?php _e( 'WP_Theme, wp_get_themes(), wp_get_theme(). Faster, uses less memory, makes use of persistent caching.' ); ?></p>
-
-                       <h4><?php _e( 'Custom Header and Background API' ); ?></h4>
-                       <p><?php  _e( 'Custom header and background API relocated into the theme support API.' ); ?></p>
+                       <h4><?php _e( 'Advanced Date Queries' ); ?></h4>
+                       <p><?php _e( 'Developers can now query for posts within a date range, or that are older than or newer than a specific point in time. Or get really fancy: all posts written on Friday afternoons? Not&nbsp;a&nbsp;problem.' ); ?></p>
                </div>
                <div class="last-feature">
                </div>
                <div class="last-feature">
-                       <h4><?php _e( 'XML-RPC API' ); ?></h4>
-                       <p><?php printf( __( 'A new <a href="%s">WordPress API</a> that supports custom content types and taxonomies, as well as dozens of other bug fixes and improvements.' ), __( 'http://codex.wordpress.org/XML-RPC_WordPress_API' ) ); ?></p>
-
-                       <h4><?php _e( 'External Libraries' ); ?></h4>
-                       <p><?php _e( 'jQuery, jQuery UI, TinyMCE, Plupload, PHPMailer, SimplePie, and other libraries were updated. jQuery UI Touch Punch was introduced.' ); ?></p>
+                       <h4><?php _e( 'Multisite Improvements' ); ?></h4>
+                       <p><?php _e( '<code>wp_get_sites()</code> allows developers to easily get an array of all the sites on your network without resorting to a direct database query &mdash; just one of many improvements to multisite in WordPress 3.7.' ); ?></p>
                </div>
                </div>
-       </div>
 </div>
 
 <div class="return-to-dashboard">
 </div>
 
 <div class="return-to-dashboard">