WordPress 4.6.1
[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 Release' ); ?></h3>
63                         <p><?php printf( _n( '<strong>Version %1$s</strong> addressed some security issues and fixed %2$s bug.',
64                                 '<strong>Version %1$s</strong> addressed some security issues and fixed %2$s bugs.', 15 ), '4.6.1', number_format_i18n( 15 ) ); ?>
65                                 <?php printf( __( 'For more information, see <a href="%s">the release notes</a>.' ), 'https://codex.wordpress.org/Version_4.6.1' ); ?>
66                         </p>
67                 </div>
68
69                 <div class="headline-feature feature-video">
70                         <iframe width="1050" height="591" src="<?php echo esc_url( $video_url ); ?>" frameborder="0" allowfullscreen></iframe>
71                         <script src="https://videopress.com/videopress-iframe.js"></script>
72                 </div>
73
74                 <hr>
75
76                 <div class="streamlined-updates feature-section one-col">
77                         <h2><?php _e( 'Streamlined Updates' ); ?></h2>
78                         <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>
79                         <?php
80                         if ( ! wp_is_mobile() ) {
81                                 add_filter( 'wp_video_shortcode', '_wp_override_admin_video_width_limit' );
82                                 echo wp_video_shortcode( array(
83                                         'mp4'      => 'https://s.w.org/images/core/4.6/streamlined-updates.mp4',
84                                         'webm'     => 'https://s.w.org/images/core/4.6/streamlined-updates.webm',
85                                         'poster'   => 'https://s.w.org/images/core/4.6/streamlined-updates-2000.png?v1',
86                                         'loop'     => true,
87                                         'autoplay' => true,
88                                         'width'    => 1050,
89                                         'height'   => 630,
90                                         'class'    => 'wp-video-shortcode feature-video',
91                                 ) );
92                                 remove_filter( 'wp_video_shortcode', '_wp_override_admin_video_width_limit' );
93                         } else {
94                                 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" />';
95                         }
96                         ?>
97                 </div>
98
99                 <hr />
100
101                 <div class="native-fonts feature-section one-col">
102                         <h2><?php _e( 'Native Fonts' ); ?></h2>
103                         <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>
104                         <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"/>
105                 </div>
106
107                 <hr />
108
109                 <div class="feature-section two-col">
110                         <h2><?php _e( 'Editor Improvements' ); ?></h2>
111                         <div class="col">
112                                 <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"/>
113                                 <h3><?php _e( 'Inline Link Checker' ); ?></h3>
114                                 <p><?php
115                                         printf(
116                                                 /* translators: %s: Home URL appended with 'wordpress.org'  */
117                                                 __( 'Ever accidentally made a link to %s? Now WordPress automatically checks to make sure you didn&#8217;t.' ),
118                                                 home_url( 'wordpress.org' )
119                                         );
120                                 ?></p>
121                         </div>
122                         <div class="col">
123                                 <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"/>
124                                 <h3><?php _e( 'Content Recovery' ); ?></h3>
125                                 <p><?php _e( 'As you type, WordPress saves your content to the browser. Recovering saved content is even easier with WordPress 4.6.' ); ?></p>
126                         </div>
127                 </div>
128
129                 <hr />
130
131                 <div class="changelog">
132                         <h2><?php _e( 'Under the Hood' ); ?></h2>
133
134                         <div class="under-the-hood three-col">
135                                 <div class="col">
136                                         <h3><?php _e( 'Resource Hints' ); ?></h3>
137                                         <p><?php
138                                                 printf(
139                                                         /* translators: %s: https://make.wordpress.org/core/2016/07/06/resource-hints-in-4-6/ */
140                                                         __( '<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.' ),
141                                                         'https://make.wordpress.org/core/2016/07/06/resource-hints-in-4-6/'
142                                                 );
143                                         ?></p>
144                                 </div>
145                                 <div class="col">
146                                         <h3><?php _e( 'Robust Requests' ); ?></h3>
147                                         <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>
148                                 </div>
149                                 <div class="col">
150                                         <h3><?php
151                                                 /* translators: 1: WP_Term_Query, 2: WP_Post_Type */
152                                                 printf( __( '%1$s and %2$s' ), '<code>WP_Term_Query</code>', '<code>WP_Post_Type</code>' );
153                                         ?></h3>
154                                         <p><?php
155                                                 printf(
156                                                         /* translators: 1: WP_Term_Query, 2: WP_Post_Type */
157                                                         __( 'A new %1$s class adds flexibility to query term information while a new %2$s object makes interacting with post types more predictable.' ),
158                                                         '<code>WP_Term_Query</code>',
159                                                         '<code>WP_Post_Type</code>'
160                                                 );
161                                         ?></p>
162                                 </div>
163                         </div>
164
165                         <div class="under-the-hood three-col">
166                                 <div class="col">
167                                         <h3><?php _e( 'Meta Registration API' ); ?></h3>
168                                         <p><?php
169                                                 printf(
170                                                         /* translators: %s: https://make.wordpress.org/core/2016/07/08/enhancing-register_meta-in-4-6/  */
171                                                         __( 'The Meta Registration API <a href="%s">has been expanded</a> to support types, descriptions, and REST API visibility.' ),
172                                                         'https://make.wordpress.org/core/2016/07/08/enhancing-register_meta-in-4-6/'
173                                                 );
174                                         ?></p>
175                                 </div>
176                                 <div class="col">
177                                         <h3><?php _e( 'Translations On Demand' ); ?></h3>
178                                         <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>
179                                 </div>
180                                 <div class="col">
181                                         <h3><?php _e( 'JavaScript Library Updates' ); ?></h3>
182                                         <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>
183                                 </div>
184                         </div>
185
186                         <div class="under-the-hood two-col">
187                                 <div class="col">
188                                         <h3><?php _e( 'Customizer APIs for Setting Validation and Notifications' ); ?></h3>
189                                         <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>
190                                 </div>
191                                 <div class="col">
192                                         <h3><?php _e( 'Multisite, now faster than ever' ); ?></h3>
193                                         <p><?php
194                                                 printf(
195                                                         /* translators: 1: WP_Site_Query, 2: WP_Network_Query */
196                                                         __( '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.' ),
197                                                         '<code>WP_Site_Query</code>',
198                                                         '<code>WP_Network_Query</code>'
199                                                 );
200                                         ?></p>
201                                 </div>
202                         </div>
203                 </div>
204
205                 <hr />
206
207                 <div class="return-to-dashboard">
208                         <?php if ( current_user_can( 'update_core' ) && isset( $_GET['updated'] ) ) : ?>
209                                 <a href="<?php echo esc_url( self_admin_url( 'update-core.php' ) ); ?>">
210                                         <?php is_multisite() ? _e( 'Return to Updates' ) : _e( 'Return to Dashboard &rarr; Updates' ); ?>
211                                 </a> |
212                         <?php endif; ?>
213                         <a href="<?php echo esc_url( self_admin_url() ); ?>"><?php is_blog_admin() ? _e( 'Go to Dashboard &rarr; Home' ) : _e( 'Go to Dashboard' ); ?></a>
214                 </div>
215
216         </div>
217 <?php
218
219 include( ABSPATH . 'wp-admin/admin-footer.php' );
220
221 // These are strings we may use to describe maintenance/security releases, where we aim for no new strings.
222 return;
223
224 __( 'Maintenance Release' );
225 __( 'Maintenance Releases' );
226
227 __( 'Security Release' );
228 __( 'Security Releases' );
229
230 __( 'Maintenance and Security Release' );
231 __( 'Maintenance and Security Releases' );
232
233 /* translators: %s: WordPress version number */
234 __( '<strong>Version %s</strong> addressed one security issue.' );
235 /* translators: %s: WordPress version number */
236 __( '<strong>Version %s</strong> addressed some security issues.' );
237
238 /* translators: 1: WordPress version number, 2: plural number of bugs. */
239 _n_noop( '<strong>Version %1$s</strong> addressed %2$s bug.',
240          '<strong>Version %1$s</strong> addressed %2$s bugs.' );
241
242 /* translators: 1: WordPress version number, 2: plural number of bugs. Singular security issue. */
243 _n_noop( '<strong>Version %1$s</strong> addressed a security issue and fixed %2$s bug.',
244          '<strong>Version %1$s</strong> addressed a security issue and fixed %2$s bugs.' );
245
246 /* translators: 1: WordPress version number, 2: plural number of bugs. More than one security issue. */
247 _n_noop( '<strong>Version %1$s</strong> addressed some security issues and fixed %2$s bug.',
248          '<strong>Version %1$s</strong> addressed some security issues and fixed %2$s bugs.' );
249
250 /* translators: %s: Codex URL */
251 __( 'For more information, see <a href="%s">the release notes</a>.' );