]> scripts.mit.edu Git - autoinstalls/wordpress.git/blob - wp-admin/about.php
WordPress 4.6.2
[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 if ( ! wp_is_mobile() ) {
13         wp_enqueue_style( 'wp-mediaelement' );
14         wp_enqueue_script( 'wp-mediaelement' );
15         wp_localize_script( 'mediaelement', '_wpmejsSettings', array(
16                 'pluginPath'        => includes_url( 'js/mediaelement/', 'relative' ),
17                 'pauseOtherPlayers' => '',
18         ) );
19 }
20
21 /**
22  * Replaces the height and width attributes with values for full size.
23  *
24  * wp_video_shortcode() limits the width to 640px.
25  *
26  * @since 4.6.0
27  * @ignore
28  *
29  * @param $output Video shortcode HTML output.
30  * @return string Filtered HTML content to display video.
31  */
32 function _wp_override_admin_video_width_limit( $output ) {
33         return str_replace( array( '640', '384' ), array( '1050', '630' ), $output );
34 }
35
36 $video_url = 'https://videopress.com/embed/GbdhpGF3?hd=true';
37 $locale    = str_replace( '_', '-', get_locale() );
38 list( $locale ) = explode( '-', $locale );
39 if ( 'en' !== $locale ) {
40         $video_url = add_query_arg( 'defaultLangCode', $locale, $video_url );
41 }
42
43 $title = __( 'About' );
44
45 list( $display_version ) = explode( '-', $wp_version );
46
47 include( ABSPATH . 'wp-admin/admin-header.php' );
48 ?>
49         <div class="wrap about-wrap">
50                 <h1><?php printf( __( 'Welcome to WordPress&nbsp;%s' ), $display_version ); ?></h1>
51
52                 <p class="about-text"><?php printf( __( 'Thank you for updating to the latest version. WordPress %s changes a lot behind the scenes to make your WordPress experience even better!' ), $display_version ); ?></p>
53                 <div class="wp-badge"><?php printf( __( 'Version %s' ), $display_version ); ?></div>
54
55                 <h2 class="nav-tab-wrapper wp-clearfix">
56                         <a href="about.php" class="nav-tab nav-tab-active"><?php _e( 'What&#8217;s New' ); ?></a>
57                         <a href="credits.php" class="nav-tab"><?php _e( 'Credits' ); ?></a>
58                         <a href="freedoms.php" class="nav-tab"><?php _e( 'Freedoms' ); ?></a>
59                 </h2>
60
61                 <div class="changelog point-releases">
62                         <h3><?php _e( 'Maintenance and Security Releases' ); ?></h3>
63                         <p><?php printf( __( '<strong>Version %s</strong> addressed some security issues.' ), '4.6.2' ); ?>
64                                 <?php printf( __( 'For more information, see <a href="%s">the release notes</a>.' ), 'https://codex.wordpress.org/Version_4.6.2' ); ?>
65                         </p>
66                         <p><?php printf( _n( '<strong>Version %1$s</strong> addressed some security issues and fixed %2$s bug.',
67                                 '<strong>Version %1$s</strong> addressed some security issues and fixed %2$s bugs.', 15 ), '4.6.1', number_format_i18n( 15 ) ); ?>
68                                 <?php printf( __( 'For more information, see <a href="%s">the release notes</a>.' ), 'https://codex.wordpress.org/Version_4.6.1' ); ?>
69                         </p>
70                 </div>
71
72                 <div class="headline-feature feature-video">
73                         <iframe width="1050" height="591" src="<?php echo esc_url( $video_url ); ?>" frameborder="0" allowfullscreen></iframe>
74                         <script src="https://videopress.com/videopress-iframe.js"></script>
75                 </div>
76
77                 <hr>
78
79                 <div class="streamlined-updates feature-section one-col">
80                         <h2><?php _e( 'Streamlined Updates' ); ?></h2>
81                         <p><?php _e( 'Don&#8217;t lose your place: stay on the same page while you update, install, and delete your plugins and themes.' ); ?></p>
82                         <?php
83                         if ( ! wp_is_mobile() ) {
84                                 add_filter( 'wp_video_shortcode', '_wp_override_admin_video_width_limit' );
85                                 echo wp_video_shortcode( array(
86                                         'mp4'      => 'https://s.w.org/images/core/4.6/streamlined-updates.mp4',
87                                         'webm'     => 'https://s.w.org/images/core/4.6/streamlined-updates.webm',
88                                         'poster'   => 'https://s.w.org/images/core/4.6/streamlined-updates-2000.png?v1',
89                                         'loop'     => true,
90                                         'autoplay' => true,
91                                         'width'    => 1050,
92                                         'height'   => 630,
93                                         'class'    => 'wp-video-shortcode feature-video',
94                                 ) );
95                                 remove_filter( 'wp_video_shortcode', '_wp_override_admin_video_width_limit' );
96                         } else {
97                                 echo '<img src="https://s.w.org/images/core/4.6/streamlined-updates-1057.png?v1" alt="" srcset="https://s.w.org/images/core/4.6/streamlined-updates-1664.png?v1 1664w, https://s.w.org/images/core/4.6/streamlined-updates-200.png?v1 200w, https://s.w.org/images/core/4.6/streamlined-updates-1057.png?v1 1057w, https://s.w.org/images/core/4.6/streamlined-updates-2000.png?v1 2000w"  sizes="(max-width: 500px) calc(100vw - 40px), (max-width: 782px) calc(100vw - 70px), (max-width: 959px) calc(100vw - 116px), (max-width: 1290px) calc(100vw - 240px), 1050px" />';
98                         }
99                         ?>
100                 </div>
101
102                 <hr />
103
104                 <div class="native-fonts feature-section one-col">
105                         <h2><?php _e( 'Native Fonts' ); ?></h2>
106                         <p><?php _e( 'The WordPress dashboard now takes advantage of the fonts you already have, making it load faster and letting you feel more at home on whatever device you use.' ); ?></p>
107                         <img src="https://s.w.org/images/core/4.6/native-fonts-992.png?v1" alt="" srcset="https://cldup.com/Hqmo5VLb-E.png?v1 922w, https://s.w.org/images/core/4.6/native-fonts-200.png?v1 200w,https://s.w.org/images/core/4.6/native-fonts-371.png?v1 371w,https://s.w.org/images/core/4.6/native-fonts-510.png?v1 510w, https://s.w.org/images/core/4.6/native-fonts-560.png?v1 560w, https://s.w.org/images/core/4.6/native-fonts-781.png?v1 781w, https://s.w.org/images/core/4.6/native-fonts-2000.png?v1 2000w" sizes="(max-width: 500px) calc(100vw - 40px), (max-width: 782px) calc(100vw - 70px), (max-width: 959px) calc(100vw - 116px), (max-width: 1290px) calc(100vw - 240px), 1050px"/>
108                 </div>
109
110                 <hr />
111
112                 <div class="feature-section two-col">
113                         <h2><?php _e( 'Editor Improvements' ); ?></h2>
114                         <div class="col">
115                                 <img src="https://s.w.org/images/core/4.6/inline-link-checker-608.png?v1" alt="" srcset="https://s.w.org/images/core/4.6/inline-link-checker-789.png?v1 789w, https://s.w.org/images/core/4.6/inline-link-checker-200.png?v1 200w, https://s.w.org/images/core/4.6/inline-link-checker-384.png?v1 384w, https://s.w.org/images/core/4.6/inline-link-checker-608.png?v1 608w, https://s.w.org/images/core/4.6/inline-link-checker-992.png?v1 992w" sizes="(max-width: 500px) calc(100vw - 40px), (max-width: 781px) calc((100vw - 70px) * .466), (max-width: 959px) calc((100vw - 116px) * .469), (max-width: 1290px) calc((100vw - 240px) * .472), 496px"/>
116                                 <h3><?php _e( 'Inline Link Checker' ); ?></h3>
117                                 <p><?php
118                                         printf(
119                                                 /* translators: %s: Home URL appended with 'wordpress.org'  */
120                                                 __( 'Ever accidentally made a link to %s? Now WordPress automatically checks to make sure you didn&#8217;t.' ),
121                                                 home_url( 'wordpress.org' )
122                                         );
123                                 ?></p>
124                         </div>
125                         <div class="col">
126                                 <img src="https://s.w.org/images/core/4.6/content-recovery-561.png?v1" alt="" srcset="https://s.w.org/images/core/4.6/content-recovery-701.png?v1 701w, https://s.w.org/images/core/4.6/content-recovery-200.png?v1 200w, https://s.w.org/images/core/4.6/content-recovery-400.png?v1 400w, https://s.w.org/images/core/4.6/content-recovery-561.png?v1 561w, https://s.w.org/images/core/4.6/content-recovery-992.png?v1 992w" sizes="(max-width: 500px) calc(100vw - 40px), (max-width: 781px) calc((100vw - 70px) * .466), (max-width: 959px) calc((100vw - 116px) * .469), (max-width: 1290px) calc((100vw - 240px) * .472), 496px"/>
127                                 <h3><?php _e( 'Content Recovery' ); ?></h3>
128                                 <p><?php _e( 'As you type, WordPress saves your content to the browser. Recovering saved content is even easier with WordPress 4.6.' ); ?></p>
129                         </div>
130                 </div>
131
132                 <hr />
133
134                 <div class="changelog">
135                         <h2><?php _e( 'Under the Hood' ); ?></h2>
136
137                         <div class="under-the-hood three-col">
138                                 <div class="col">
139                                         <h3><?php _e( 'Resource Hints' ); ?></h3>
140                                         <p><?php
141                                                 printf(
142                                                         /* translators: %s: https://make.wordpress.org/core/2016/07/06/resource-hints-in-4-6/ */
143                                                         __( '<a href="%s">Resource hints help browsers</a> decide which resources to fetch and preprocess. WordPress 4.6 adds them automatically for your styles and scripts making your site even faster.' ),
144                                                         'https://make.wordpress.org/core/2016/07/06/resource-hints-in-4-6/'
145                                                 );
146                                         ?></p>
147                                 </div>
148                                 <div class="col">
149                                         <h3><?php _e( 'Robust Requests' ); ?></h3>
150                                         <p><?php _e( 'The HTTP API now leverages the Requests library, improving HTTP standard support and adding case-insensitive headers, parallel HTTP requests, and support for Internationalized Domain Names.' ); ?></p>
151                                 </div>
152                                 <div class="col">
153                                         <h3><?php
154                                                 /* translators: 1: WP_Term_Query, 2: WP_Post_Type */
155                                                 printf( __( '%1$s and %2$s' ), '<code>WP_Term_Query</code>', '<code>WP_Post_Type</code>' );
156                                         ?></h3>
157                                         <p><?php
158                                                 printf(
159                                                         /* translators: 1: WP_Term_Query, 2: WP_Post_Type */
160                                                         __( 'A new %1$s class adds flexibility to query term information while a new %2$s object makes interacting with post types more predictable.' ),
161                                                         '<code>WP_Term_Query</code>',
162                                                         '<code>WP_Post_Type</code>'
163                                                 );
164                                         ?></p>
165                                 </div>
166                         </div>
167
168                         <div class="under-the-hood three-col">
169                                 <div class="col">
170                                         <h3><?php _e( 'Meta Registration API' ); ?></h3>
171                                         <p><?php
172                                                 printf(
173                                                         /* translators: %s: https://make.wordpress.org/core/2016/07/08/enhancing-register_meta-in-4-6/  */
174                                                         __( 'The Meta Registration API <a href="%s">has been expanded</a> to support types, descriptions, and REST API visibility.' ),
175                                                         'https://make.wordpress.org/core/2016/07/08/enhancing-register_meta-in-4-6/'
176                                                 );
177                                         ?></p>
178                                 </div>
179                                 <div class="col">
180                                         <h3><?php _e( 'Translations On Demand' ); ?></h3>
181                                         <p><?php _e( 'WordPress will install and use the newest language packs for your plugins and themes as soon as they&#8217;re available from <a href="https://translate.wordpress.org/">WordPress.org&#8217;s community of translators</a>.' ); ?></p>
182                                 </div>
183                                 <div class="col">
184                                         <h3><?php _e( 'JavaScript Library Updates' ); ?></h3>
185                                         <p><?php _e( 'Masonry 3.3.2, imagesLoaded 3.2.0, MediaElement.js 2.22.0, TinyMCE 4.4.1, and Backbone.js 1.3.3 are bundled.' ); ?></p>
186                                 </div>
187                         </div>
188
189                         <div class="under-the-hood two-col">
190                                 <div class="col">
191                                         <h3><?php _e( 'Customizer APIs for Setting Validation and Notifications' ); ?></h3>
192                                         <p><?php _e( 'Settings now have an <a href="https://make.wordpress.org/core/2016/07/05/customizer-apis-in-4-6-for-setting-validation-and-notifications/">API for enforcing validation constraints</a>. Likewise, customizer controls now support notifications, which are used to display validation errors instead of failing silently.' ); ?></p>
193                                 </div>
194                                 <div class="col">
195                                         <h3><?php _e( 'Multisite, now faster than ever' ); ?></h3>
196                                         <p><?php
197                                                 printf(
198                                                         /* translators: 1: WP_Site_Query, 2: WP_Network_Query */
199                                                         __( 'Cached and comprehensive site queries improve your network admin experience. The addition of %1$s and %2$s help craft advanced queries with less effort.' ),
200                                                         '<code>WP_Site_Query</code>',
201                                                         '<code>WP_Network_Query</code>'
202                                                 );
203                                         ?></p>
204                                 </div>
205                         </div>
206                 </div>
207
208                 <hr />
209
210                 <div class="return-to-dashboard">
211                         <?php if ( current_user_can( 'update_core' ) && isset( $_GET['updated'] ) ) : ?>
212                                 <a href="<?php echo esc_url( self_admin_url( 'update-core.php' ) ); ?>">
213                                         <?php is_multisite() ? _e( 'Return to Updates' ) : _e( 'Return to Dashboard &rarr; Updates' ); ?>
214                                 </a> |
215                         <?php endif; ?>
216                         <a href="<?php echo esc_url( self_admin_url() ); ?>"><?php is_blog_admin() ? _e( 'Go to Dashboard &rarr; Home' ) : _e( 'Go to Dashboard' ); ?></a>
217                 </div>
218
219         </div>
220 <?php
221
222 include( ABSPATH . 'wp-admin/admin-footer.php' );
223
224 // These are strings we may use to describe maintenance/security releases, where we aim for no new strings.
225 return;
226
227 __( 'Maintenance Release' );
228 __( 'Maintenance Releases' );
229
230 __( 'Security Release' );
231 __( 'Security Releases' );
232
233 __( 'Maintenance and Security Release' );
234 __( 'Maintenance and Security Releases' );
235
236 /* translators: %s: WordPress version number */
237 __( '<strong>Version %s</strong> addressed one security issue.' );
238 /* translators: %s: WordPress version number */
239 __( '<strong>Version %s</strong> addressed some security issues.' );
240
241 /* translators: 1: WordPress version number, 2: plural number of bugs. */
242 _n_noop( '<strong>Version %1$s</strong> addressed %2$s bug.',
243          '<strong>Version %1$s</strong> addressed %2$s bugs.' );
244
245 /* translators: 1: WordPress version number, 2: plural number of bugs. Singular security issue. */
246 _n_noop( '<strong>Version %1$s</strong> addressed a security issue and fixed %2$s bug.',
247          '<strong>Version %1$s</strong> addressed a security issue and fixed %2$s bugs.' );
248
249 /* translators: 1: WordPress version number, 2: plural number of bugs. More than one security issue. */
250 _n_noop( '<strong>Version %1$s</strong> addressed some security issues and fixed %2$s bug.',
251          '<strong>Version %1$s</strong> addressed some security issues and fixed %2$s bugs.' );
252
253 /* translators: %s: Codex URL */
254 __( 'For more information, see <a href="%s">the release notes</a>.' );