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