WordPress 4.7.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 $video_url = 'https://videopress.com/embed/AHz0Ca46?hd=true';
22 $lang_code = str_replace( '_', '-', get_user_locale() );
23 list( $lang_code ) = explode( '-', $lang_code );
24 if ( 'en' !== $lang_code ) {
25         $video_url = add_query_arg( 'defaultLangCode', $lang_code, $video_url );
26 }
27
28 $title = __( 'About' );
29
30 list( $display_version ) = explode( '-', get_bloginfo( 'version' ) );
31
32 include( ABSPATH . 'wp-admin/admin-header.php' );
33 ?>
34         <div class="wrap about-wrap">
35                 <h1><?php printf( __( 'Welcome to WordPress&nbsp;%s' ), $display_version ); ?></h1>
36
37                 <p class="about-text"><?php printf( __( 'Thank you for updating to the latest version! WordPress %s helps you get your site set up the way you want it.' ), $display_version ); ?></p>
38                 <div class="wp-badge"><?php printf( __( 'Version %s' ), $display_version ); ?></div>
39
40                 <h2 class="nav-tab-wrapper wp-clearfix">
41                         <a href="about.php" class="nav-tab nav-tab-active"><?php _e( 'What&#8217;s New' ); ?></a>
42                         <a href="credits.php" class="nav-tab"><?php _e( 'Credits' ); ?></a>
43                         <a href="freedoms.php" class="nav-tab"><?php _e( 'Freedoms' ); ?></a>
44                 </h2>
45
46                 <div class="changelog point-releases">
47                         <h3><?php _e( 'Maintenance and Security Releases' ); ?></h3>
48                         <p><?php printf( __( '<strong>Version %s</strong> addressed some security issues.' ), '4.7.2' ); ?>
49                                 <?php printf( __( 'For more information, see <a href="%s">the release notes</a>.' ), 'https://codex.wordpress.org/Version_4.7.2' ); ?>
50                         </p>
51                         <p><?php printf( _n( '<strong>Version %1$s</strong> addressed some security issues and fixed %2$s bug.',
52                                         '<strong>Version %1$s</strong> addressed some security issues and fixed %2$s bugs.', 62 ), '4.7.1', number_format_i18n( 62 ) ); ?>
53                                 <?php printf( __( 'For more information, see <a href="%s">the release notes</a>.' ), 'https://codex.wordpress.org/Version_4.7.1' ); ?>
54                         </p>
55                 </div>
56
57                 <div class="headline-feature feature-video">
58                         <iframe width="1050" height="591" src="<?php echo esc_url( $video_url ); ?>" frameborder="0" allowfullscreen></iframe>
59                         <script src="https://videopress.com/videopress-iframe.js"></script>
60                 </div>
61
62                 <hr />
63
64                 <div class="feature-section one-col">
65                         <h2><?php _e( 'Presenting Twenty Seventeen' ); ?></h2>
66                         <p class="lead-description"><?php _e( 'A brand new default theme brings your site to life with immersive featured images and video headers.' ); ?></p>
67                         <picture>
68                                 <source media="(min-width: 450px)" srcset="https://s.w.org/images/core/4.7/twenty-seventeen-1600.jpg?v2 1600w, https://s.w.org/images/core/4.7/twenty-seventeen-493.jpg?v2 493w, https://s.w.org/images/core/4.7/twenty-seventeen-663.jpg?v2 663w, https://s.w.org/images/core/4.7/twenty-seventeen-804.jpg?v2 804w, https://s.w.org/images/core/4.7/twenty-seventeen-928.jpg?v2 928w, https://s.w.org/images/core/4.7/twenty-seventeen-1058.jpg?v2 1058w, https://s.w.org/images/core/4.7/twenty-seventeen-1173.jpg?v2 1173w, https://s.w.org/images/core/4.7/twenty-seventeen-1299.jpg?v2 1299w, https://s.w.org/images/core/4.7/twenty-seventeen-1410.jpg?v2 1410w, https://s.w.org/images/core/4.7/twenty-seventeen-1513.jpg?v2 1513w, https://s.w.org/images/core/4.7/twenty-seventeen-1595.jpg?v2 1595w" 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">
69                                 <source srcset="https://s.w.org/images/core/4.7/twenty-seventeen-mobile-564.jpg?v2 564w, https://s.w.org/images/core/4.7/twenty-seventeen-mobile-280.jpg?v2 280w, https://s.w.org/images/core/4.7/twenty-seventeen-mobile-372.jpg?v2 372w, https://s.w.org/images/core/4.7/twenty-seventeen-mobile-454.jpg?v2 454w, https://s.w.org/images/core/4.7/twenty-seventeen-mobile-541.jpg?v2 541w" sizes="calc(100vw - 40px)">
70                                 <img src="https://s.w.org/images/core/4.7/twenty-seventeen-1600.jpg?v2" srcset="https://s.w.org/images/core/4.7/twenty-seventeen-1600.jpg?v2 1600w, https://s.w.org/images/core/4.7/twenty-seventeen-280.jpg?v2 280w, https://s.w.org/images/core/4.7/twenty-seventeen-493.jpg?v2 493w, https://s.w.org/images/core/4.7/twenty-seventeen-663.jpg?v2 663w, https://s.w.org/images/core/4.7/twenty-seventeen-804.jpg?v2 804w, https://s.w.org/images/core/4.7/twenty-seventeen-928.jpg?v2 928w, https://s.w.org/images/core/4.7/twenty-seventeen-1058.jpg?v2 1058w, https://s.w.org/images/core/4.7/twenty-seventeen-1173.jpg?v2 1173w, https://s.w.org/images/core/4.7/twenty-seventeen-1299.jpg?v2 1299w, https://s.w.org/images/core/4.7/twenty-seventeen-1410.jpg?v2 1410w, https://s.w.org/images/core/4.7/twenty-seventeen-1513.jpg?v2 1513w, https://s.w.org/images/core/4.7/twenty-seventeen-1595.jpg?v2 1595w" 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" alt="" />
71                         </picture>
72                         <p><?php _e( 'Twenty Seventeen focuses on business sites and features a customizable front page with multiple sections. Personalize it with widgets, navigation, social menus, a logo, custom colors, and more. Our default theme for 2017 works great in many languages, on any device, and for a wide range of users.' ); ?></p>
73                 </div>
74
75                 <hr />
76
77                 <div class="feature-section one-col">
78                         <h2><?php _e( 'Your Site, Your Way' ); ?></h2>
79                         <p class="lead-description"><?php _e( 'WordPress 4.7 adds new features to the customizer to help take you through the initial setup of a theme, with non-destructive live previews of all your changes in one uninterrupted workflow.' ); ?></p>
80                 </div>
81
82                 <div class="feature-section two-col">
83                         <div class="col">
84                                 <h3><?php _e( 'Theme Starter Content' ); ?></h3>
85                                 <p><?php _e( 'To help give you a solid base to build from, individual themes can provide starter content that appears when you go to customize your brand new site. This can range from placing a business information widget in the best location to providing a sample menu with social icon links to a static front page complete with beautiful images. Don&#8217;t worry - nothing new will appear on the live site until you&#8217;re ready to save and publish your initial theme setup.' ); ?></p>
86                         </div>
87                         <div class="col">
88                                 <?php
89                                 echo wp_video_shortcode( array(
90                                         'mp4'      => 'https://s.w.org/images/core/4.7/starter-content-v1.mp4',
91                                         'poster'   => 'https://s.w.org/images/core/4.7/starter-content.jpg?v2',
92                                         'loop'     => true,
93                                         'autoplay' => true,
94                                         'width'    => 1140,
95                                         'height'   => 624,
96                                         // 'class'    => 'wp-video-shortcode feature-video',
97                                 ) );
98                                 ?>
99                         </div>
100                 </div>
101
102                 <div class="feature-section two-col">
103                         <div class="col">
104                                 <h3><?php _e( 'Edit Shortcuts' ); ?></h3>
105                                 <?php
106                                 echo wp_video_shortcode( array(
107                                         'mp4'      => 'https://s.w.org/images/core/4.7/edit-shortcuts-v1.mp4',
108                                         'poster'   => 'https://s.w.org/images/core/4.7/edit-shortcuts.jpg?v2',
109                                         'loop'     => true,
110                                         'autoplay' => true,
111                                         'width'    => 2520,
112                                         'height'   => 1454,
113                                         // 'class'    => 'wp-video-shortcode feature-video',
114                                 ) );
115                                 ?>
116                                 <p><?php _e( 'Visible icons appear to show you which parts of your site can be customized while live previewing. Click on a shortcut and get straight to editing. Paired with starter content, getting started with customizing your site is faster than ever.' );?></p>
117                         </div>
118                         <div class="col">
119                                 <h3><?php _e( 'Video Headers' ); ?></h3>
120                                 <?php
121                                 echo wp_video_shortcode( array(
122                                         'mp4'      => 'https://s.w.org/images/core/4.7/header-video-v1.mp4',
123                                         'poster'   => 'https://s.w.org/images/core/4.7/header-video.jpg?v2',
124                                         'loop'     => true,
125                                         'autoplay' => true,
126                                         'width'    => 2520,
127                                         'height'   => 1454,
128                                         // 'class'    => 'wp-video-shortcode feature-video',
129                                 ) );
130                                 ?>
131                                 <p><?php _e( 'Sometimes a big atmospheric video as a moving header image is just what you need to showcase your wares; go ahead and try it out with Twenty Seventeen. Need some video inspiration? Try searching for sites with video headers available for download and use.' ); ?></p>
132                         </div>
133                 </div>
134
135                 <div class="feature-section two-col">
136                         <div class="col">
137                                 <h3><?php _e( 'Smoother Menu Building' ); ?></h3>
138                                 <img src="https://s.w.org/images/core/4.7/nav-menus-760.jpg?v2" srcset="https://s.w.org/images/core/4.7/nav-menus-760.jpg?v2 760w, https://s.w.org/images/core/4.7/nav-menus-280.jpg?v2 280w, https://s.w.org/images/core/4.7/nav-menus-536.jpg?v2 536w, https://s.w.org/images/core/4.7/nav-menus-745.jpg?v2 745w" 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" alt="" />
139                                 <p><?php _e( 'Many menus for sites contain links to the pages of your site, but what happens when you don&#8217;t have any pages yet? Now you can add new pages while building menus instead of leaving the customizer and abandoning your changes. Once you&#8217;ve published your customizations, you&#8217;ll have new pages ready for you to fill with content.' );?></p>
140                         </div>
141                         <div class="col">
142                                 <h3><?php _e( 'Custom CSS' ); ?></h3>
143                                 <img src="https://s.w.org/images/core/4.7/css-760.jpg?v2" srcset="https://s.w.org/images/core/4.7/css-760.jpg?v2 760w, https://s.w.org/images/core/4.7/css-280.jpg?v2 280w, https://s.w.org/images/core/4.7/css-547.jpg?v2 547w" 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" alt="" />
144                                 <p><?php _e( 'Sometimes you just need a few visual tweaks to make your site perfect. WordPress 4.7 allows you to add custom CSS and instantly see how your changes affect your site. The live preview allows you to work quickly without page refreshes slowing you down.' ); ?></p>
145                         </div>
146                 </div>
147
148                 <hr />
149
150                 <div class="feature-section no-heading two-col">
151                         <div class="col">
152                                 <h3><?php _e( 'PDF Thumbnail Previews' ); ?></h3>
153                                 <img src="https://s.w.org/images/core/4.7/pdf-760.jpg?v2" srcset="https://s.w.org/images/core/4.7/pdf-760.jpg?v2 760w, https://s.w.org/images/core/4.7/pdf-280.jpg?v2 280w, https://s.w.org/images/core/4.7/pdf-412.jpg?v2 412w, https://s.w.org/images/core/4.7/pdf-516.jpg?v2 516w, https://s.w.org/images/core/4.7/pdf-615.jpg?v2 615w, https://s.w.org/images/core/4.7/pdf-716.jpg?v2 716w" 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" alt="" />
154                                 <p><?php _e( 'Managing your document collection is easier with WordPress 4.7. Uploading PDFs will generate thumbnail images so you can more easily distinguish between all your documents.' ); ?></p>
155                         </div>
156                         <div class="col">
157                                 <h3><?php _e( 'Dashboard in your language' ); ?></h3>
158                                 <img src="https://s.w.org/images/core/4.7/language-760.jpg?v2" srcset="https://s.w.org/images/core/4.7/language-760.jpg?v2 760w, https://s.w.org/images/core/4.7/language-280.jpg?v2 280w, https://s.w.org/images/core/4.7/language-568.jpg?v2 568w" 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" alt="" />
159                                 <p><?php _e( 'Just because your site is in one language doesn&#8217;t mean that everybody helping manage it prefers that language for their admin. Add more languages to your site and a user language option will show up in your user&#8217;s profiles.' );?></p>
160                         </div>
161                 </div>
162
163                 <hr />
164
165                 <div class="rest-api feature-section one-col">
166                         <h2><?php _e( 'Introducing REST API Content Endpoints' ); ?></h2>
167                         <p class="lead-description"><?php _e( 'WordPress 4.7 comes with REST API endpoints for posts, comments, terms, users, meta, and settings.' ); ?></p>
168                         <img src="https://s.w.org/images/core/4.7/api-1559.jpg?v2" srcset="https://s.w.org/images/core/4.7/api-2100.jpg?v2 2100w, https://s.w.org/images/core/4.7/api-280.jpg?v2 280w, https://s.w.org/images/core/4.7/api-1034.jpg?v2 1034w, https://s.w.org/images/core/4.7/api-1559.jpg?v2 1559w, https://s.w.org/images/core/4.7/api-2032.jpg?v2 2032w" 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" alt="" />
169                         <p><?php
170                                 printf(
171                                         /* translators: %s: https://developer.wordpress.org/rest-api/  */
172                                         __( 'Content endpoints provide machine-readable external access to your WordPress site with a clear, standards-driven interface, paving the way for new and innovative methods of interacting with sites through plugins, themes, apps, and beyond. Ready to get started with development? <a href="%s">Check out the REST API reference.</a>' ),
173                                         'https://developer.wordpress.org/rest-api/reference/'
174                                 );
175                         ?></p>
176                 </div>
177
178                 <hr />
179
180                 <div class="changelog">
181                         <h2><?php
182                                 printf(
183                                         /* translators: %s: smiling face with smiling eyes emoji */
184                                         __( 'Even More Developer Happiness %s' ),
185                                         '&#x1F60A'
186                                 );
187                         ?></h2>
188
189                         <div class="under-the-hood three-col">
190                                 <div class="col">
191                                         <h3><a href="https://make.wordpress.org/core/2016/11/03/post-type-templates-in-4-7/"><?php _e( 'Post Type Templates' ); ?></a></h3>
192                                         <p><?php _e( 'By opening up the page template functionality to all post types, theme developers have even more flexibility with the WordPress template hierarchy.' ); ?></p>
193                                 </div>
194                                 <div class="col">
195                                         <h3><?php _e( 'More Theme API Goodies' ); ?></h3>
196                                         <p><?php
197                                                 printf(
198                                                         /* translators: %s: https://make.wordpress.org/core/2016/09/09/new-functions-hooks-and-behaviour-for-theme-developers-in-wordpress-4-7/  */
199                                                         __( 'WordPress 4.7 includes <a href="%s">new functions, hooks, and behavior</a> for theme developers.' ),
200                                                         'https://make.wordpress.org/core/2016/09/09/new-functions-hooks-and-behaviour-for-theme-developers-in-wordpress-4-7/'
201                                                 );
202                                         ?></p>
203                                 </div>
204                                 <div class="col">
205                                         <h3><a href="https://make.wordpress.org/core/2016/10/04/custom-bulk-actions/"><?php _e( 'Custom Bulk Actions' ); ?></a></h3>
206                                         <p><?php _e( 'List tables, now with more than bulk edit and delete.' ); ?></p>
207                                 </div>
208                         </div>
209
210                         <div class="under-the-hood three-col">
211                                 <div class="col">
212                                         <h3><a href="https://make.wordpress.org/core/2016/09/08/wp_hook-next-generation-actions-and-filters/"><code>WP_Hook</code></a></h3>
213                                         <p><?php
214                                                 printf(
215                                                         /* translators: %s: https://make.wordpress.org/core/2016/09/08/wp_hook-next-generation-actions-and-filters/  */
216                                                         __( 'The code that lies beneath actions and filters has been overhauled and modernized, fixing bugs along the way.' ),
217                                                         'https://make.wordpress.org/core/2016/09/08/wp_hook-next-generation-actions-and-filters/'
218                                                 );
219                                         ?></p>
220                                 </div>
221                                 <div class="col">
222                                         <h3><?php _e( 'Settings Registration API' ); ?></h3>
223                                         <p><?php
224                                                 printf(
225                                                         /* translators: 1: register_setting(), 2: https://make.wordpress.org/core/2016/10/26/registering-your-settings-in-wordpress-4-7/ */
226                                                         __( '%1$s <a href="%2$s">has been enhanced</a> to include type, description, and REST API visibility.' ),
227                                                         '<code>register_setting()</code>',
228                                                         'https://make.wordpress.org/core/2016/10/26/registering-your-settings-in-wordpress-4-7/'
229                                                 );
230                                         ?></p>
231                                 </div>
232                                 <div class="col">
233                                         <h3><a href="https://make.wordpress.org/core/2016/10/12/customize-changesets-technical-design-decisions/"><?php _e( 'Customize Changesets' ); ?></a></h3>
234                                         <p><?php _e( 'Customize changesets make changes in the customizer persistent, like autosave drafts. They also make exciting new features like starter content possible.' ); ?></p>
235                                 </div>
236                         </div>
237
238                 </div>
239
240                 <hr />
241
242                 <div class="return-to-dashboard">
243                         <?php if ( current_user_can( 'update_core' ) && isset( $_GET['updated'] ) ) : ?>
244                                 <a href="<?php echo esc_url( self_admin_url( 'update-core.php' ) ); ?>">
245                                         <?php is_multisite() ? _e( 'Return to Updates' ) : _e( 'Return to Dashboard &rarr; Updates' ); ?>
246                                 </a> |
247                         <?php endif; ?>
248                         <a href="<?php echo esc_url( self_admin_url() ); ?>"><?php is_blog_admin() ? _e( 'Go to Dashboard &rarr; Home' ) : _e( 'Go to Dashboard' ); ?></a>
249                 </div>
250
251         </div>
252 <?php
253
254 include( ABSPATH . 'wp-admin/admin-footer.php' );
255
256 // These are strings we may use to describe maintenance/security releases, where we aim for no new strings.
257 return;
258
259 __( 'Maintenance Release' );
260 __( 'Maintenance Releases' );
261
262 __( 'Security Release' );
263 __( 'Security Releases' );
264
265 __( 'Maintenance and Security Release' );
266 __( 'Maintenance and Security Releases' );
267
268 /* translators: %s: WordPress version number */
269 __( '<strong>Version %s</strong> addressed one security issue.' );
270 /* translators: %s: WordPress version number */
271 __( '<strong>Version %s</strong> addressed some security issues.' );
272
273 /* translators: 1: WordPress version number, 2: plural number of bugs. */
274 _n_noop( '<strong>Version %1$s</strong> addressed %2$s bug.',
275          '<strong>Version %1$s</strong> addressed %2$s bugs.' );
276
277 /* translators: 1: WordPress version number, 2: plural number of bugs. Singular security issue. */
278 _n_noop( '<strong>Version %1$s</strong> addressed a security issue and fixed %2$s bug.',
279          '<strong>Version %1$s</strong> addressed a security issue and fixed %2$s bugs.' );
280
281 /* translators: 1: WordPress version number, 2: plural number of bugs. More than one security issue. */
282 _n_noop( '<strong>Version %1$s</strong> addressed some security issues and fixed %2$s bug.',
283          '<strong>Version %1$s</strong> addressed some security issues and fixed %2$s bugs.' );
284
285 /* translators: %s: Codex URL */
286 __( 'For more information, see <a href="%s">the release notes</a>.' );