]> scripts.mit.edu Git - autoinstalls/wordpress.git/blob - wp-admin/about.php
WordPress 3.7.2-scripts
[autoinstalls/wordpress.git] / wp-admin / about.php
1 <?php
2 /**
3  * About This Version administration panel.
4  *
5  * @package WordPress
6  * @subpackage Administration
7  */
8
9 /** WordPress Administration Bootstrap */
10 require_once( dirname( __FILE__ ) . '/admin.php' );
11
12 $title = __( 'About' );
13
14 list( $display_version ) = explode( '-', $wp_version );
15
16 wp_enqueue_script( 'about' );
17
18 include( ABSPATH . 'wp-admin/admin-header.php' );
19 ?>
20 <div class="wrap about-wrap">
21
22 <h1><?php printf( __( 'Welcome to WordPress %s' ), $display_version ); ?></h1>
23
24 <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>
25
26 <div class="wp-badge"><?php printf( __( 'Version %s' ), $display_version ); ?></div>
27
28 <h2 class="nav-tab-wrapper">
29         <a href="about.php" class="nav-tab nav-tab-active">
30                 <?php _e( 'What&#8217;s New' ); ?>
31         </a><a href="credits.php" class="nav-tab">
32                 <?php _e( 'Credits' ); ?>
33         </a><a href="freedoms.php" class="nav-tab">
34                 <?php _e( 'Freedoms' ); ?>
35         </a>
36 </h2>
37
38 <div class="changelog point-releases">
39         <h3><?php echo _n( 'Maintenance and Security Release', 'Maintenance and Security Releases', 2 ); ?></h3>
40         <p><?php printf( _n( '<strong>Version %1$s</strong> addressed some security issues and fixed %2$s bug.',
41          '<strong>Version %1$s</strong> addressed some security issues and fixed %2$s bugs.', 9 ), '3.7.2', number_format_i18n( 9 ) ); ?>
42                 <?php printf( __( 'For more information, see <a href="%s">the release notes</a>.' ), 'http://codex.wordpress.org/Version_3.7.2' ); ?>
43         </p>
44         <p><?php printf( _n( '<strong>Version %1$s</strong> addressed %2$s bug.',
45                 '<strong>Version %1$s</strong> addressed %2$s bugs.', 11 ), '3.7.1', number_format_i18n( 11 ) ); ?>
46                 <?php printf( __( 'For more information, see <a href="%s">the release notes</a>.' ), 'http://codex.wordpress.org/Version_3.7.1' ); ?>
47         </p>
48 </div>
49
50 <div class="changelog">
51         <h3><?php _e( 'Background Updates' ); ?></h3>
52
53         <div class="feature-section col three-col about-updates">
54                 <div class="col-1">
55                         <h4><?php _e( 'Updates While You Sleep' ); ?></h4>
56                         <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>
57                 </div>
58                 <div class="col-2">
59                         <img alt="" src="<?php echo admin_url( 'images/about-updates-2x.png' ); ?>" />
60                 </div>
61                 <div class="col-3 last-feature">
62                         <h4><?php _e( 'More Reliable Than Ever' ); ?></h4>
63                         <p><?php _e( 'The update process has been made even more reliable and secure, with dozens of new checks and safeguards.' ); ?></p>
64                         <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>
65                 </div>
66                 <?php
67                 if ( current_user_can( 'update_core' ) ) {
68                         $future_minor_update = (object) array(
69                                 'current'       => $wp_version . '.1.next.minor',
70                                 'version'       => $wp_version . '.1.next.minor',
71                                 'php_version'   => $required_php_version,
72                                 'mysql_version' => $required_mysql_version,
73                         );
74                         require_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';
75                         $updater = new WP_Automatic_Updater;
76                         $can_auto_update = wp_http_supports( array( 'ssl' ) ) && $updater->should_update( 'core', $future_minor_update, ABSPATH );
77
78                         if ( $can_auto_update ) {
79                                 echo '<p class="about-auto-update cool">' . __( 'This site <strong>is</strong> able to apply these updates automatically. Cool!' ). '</p>';
80
81                         // If the updater is disabled entirely, don't show them anything.
82                         } elseif ( ! $updater->is_disabled() ) {
83                                 echo '<p class="about-auto-update">';
84                                 // If this is is filtered to false, they won't get emails, so don't claim we will.
85                                 // Assumption: If the user can update core, they can see what the admin email is.
86
87                                 /** This filter is documented in wp-admin/includes/class-wp-upgrader.php */
88                                 if ( apply_filters( 'send_core_update_notification_email', true, $future_minor_update ) ) {
89                                         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' ) ) );
90                                 } else {
91                                         _e( 'This site <strong>is not</strong> able to apply these updates automatically.' );
92                                 }
93                                 echo '</p>';
94                         }
95                 }
96                 ?>
97         </div>
98 </div>
99
100 <div class="changelog about-passwords">
101         <h3><?php _e( 'Create Stronger Passwords' ); ?></h3>
102
103         <div class="feature-section col two-col">
104                 <div>
105                         <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>
106                         <p><strong><?php _e( 'Try it out on the right.' ); ?></strong></p>
107                 </div>
108                 <div class="last-feature about-password-meter">
109                         <input type="password" id="pass" size="25" value="" />
110                         <p id="pass-strength-result" ><?php _e( 'Strength indicator' ); ?></p>
111                         <?php printf( __( 'Getting the urge to <a href="%s">change your password</a>?' ), esc_url( self_admin_url( 'profile.php' ) ) ); ?>
112                 </div>
113         </div>
114 </div>
115
116 <div class="changelog">
117         <div class="feature-section col two-col">
118                 <div>
119                         <h3><?php _e( 'Improved Search Results' ); ?></h3>
120                         <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>
121                 </div>
122                 <div class="last-feature">
123                         <h3><?php _e( 'Better Global Support' ); ?></h3>
124                         <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>
125                 </div>
126         </div>
127 </div>
128
129 <div class="changelog">
130         <h3><?php _e( 'Under the Hood' ); ?></h3>
131
132         <div class="feature-section col three-col">
133                 <div>
134                         <h4><?php _e( 'More Background Updates (Experimental)' ); ?></h4>
135                         <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>
136                 </div>
137                 <div>
138                         <h4><?php _e( 'Advanced Date Queries' ); ?></h4>
139                         <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>
140                 </div>
141                 <div class="last-feature">
142                         <h4><?php _e( 'Multisite Improvements' ); ?></h4>
143                         <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>
144                 </div>
145 </div>
146
147 <div class="return-to-dashboard">
148         <?php if ( current_user_can( 'update_core' ) && isset( $_GET['updated'] ) ) : ?>
149         <a href="<?php echo esc_url( self_admin_url( 'update-core.php' ) ); ?>"><?php
150                 is_multisite() ? _e( 'Return to Updates' ) : _e( 'Return to Dashboard &rarr; Updates' );
151         ?></a> |
152         <?php endif; ?>
153         <a href="<?php echo esc_url( self_admin_url() ); ?>"><?php
154                 is_blog_admin() ? _e( 'Go to Dashboard &rarr; Home' ) : _e( 'Go to Dashboard' ); ?></a>
155 </div>
156
157 </div>
158 <?php
159
160 include( ABSPATH . 'wp-admin/admin-footer.php' );
161
162 // These are strings we may use to describe maintenance/security releases, where we aim for no new strings.
163 return;
164
165 _n_noop( 'Maintenance Release', 'Maintenance Releases' );
166 _n_noop( 'Security Release', 'Security Releases' );
167 _n_noop( 'Maintenance and Security Release', 'Maintenance and Security Releases' );
168
169 /* translators: 1: WordPress version number. */
170 _n_noop( '<strong>Version %1$s</strong> addressed a security issue.',
171          '<strong>Version %1$s</strong> addressed some security issues.' );
172
173 /* translators: 1: WordPress version number, 2: plural number of bugs. */
174 _n_noop( '<strong>Version %1$s</strong> addressed %2$s bug.',
175          '<strong>Version %1$s</strong> addressed %2$s bugs.' );
176
177 /* translators: 1: WordPress version number, 2: plural number of bugs. Singular security issue. */
178 _n_noop( '<strong>Version %1$s</strong> addressed a security issue and fixed %2$s bug.',
179          '<strong>Version %1$s</strong> addressed a security issue and fixed %2$s bugs.' );
180
181 /* translators: 1: WordPress version number, 2: plural number of bugs. More than one security issue. */
182 _n_noop( '<strong>Version %1$s</strong> addressed some security issues and fixed %2$s bug.',
183          '<strong>Version %1$s</strong> addressed some security issues and fixed %2$s bugs.' );
184
185 __( 'For more information, see <a href="%s">the release notes</a>.' );