]> scripts.mit.edu Git - autoinstalls/wordpress.git/blob - wp-admin/about.php
WordPress 4.7.1-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 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 Release' ); ?></h3>
48                         <p><?php printf( _n( '<strong>Version %1$s</strong> addressed some security issues and fixed %2$s bug.',
49                                         '<strong>Version %1$s</strong> addressed some security issues and fixed %2$s bugs.', 62 ), '4.7.1', number_format_i18n( 62 ) ); ?>
50                                 <?php printf( __( 'For more information, see <a href="%s">the release notes</a>.' ), 'https://codex.wordpress.org/Version_4.7.1' ); ?>
51                         </p>
52                 </div>
53
54                 <div class="headline-feature feature-video">
55                         <iframe width="1050" height="591" src="<?php echo esc_url( $video_url ); ?>" frameborder="0" allowfullscreen></iframe>
56                         <script src="https://videopress.com/videopress-iframe.js"></script>
57                 </div>
58
59                 <hr />
60
61                 <div class="feature-section one-col">
62                         <h2><?php _e( 'Presenting Twenty Seventeen' ); ?></h2>
63                         <p class="lead-description"><?php _e( 'A brand new default theme brings your site to life with immersive featured images and video headers.' ); ?></p>
64                         <picture>
65                                 <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">
66                                 <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)">
67                                 <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="" />
68                         </picture>
69                         <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>
70                 </div>
71
72                 <hr />
73
74                 <div class="feature-section one-col">
75                         <h2><?php _e( 'Your Site, Your Way' ); ?></h2>
76                         <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>
77                 </div>
78
79                 <div class="feature-section two-col">
80                         <div class="col">
81                                 <h3><?php _e( 'Theme Starter Content' ); ?></h3>
82                                 <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>
83                         </div>
84                         <div class="col">
85                                 <?php
86                                 echo wp_video_shortcode( array(
87                                         'mp4'      => 'https://s.w.org/images/core/4.7/starter-content-v1.mp4',
88                                         'poster'   => 'https://s.w.org/images/core/4.7/starter-content.jpg?v2',
89                                         'loop'     => true,
90                                         'autoplay' => true,
91                                         'width'    => 1140,
92                                         'height'   => 624,
93                                         // 'class'    => 'wp-video-shortcode feature-video',
94                                 ) );
95                                 ?>
96                         </div>
97                 </div>
98
99                 <div class="feature-section two-col">
100                         <div class="col">
101                                 <h3><?php _e( 'Edit Shortcuts' ); ?></h3>
102                                 <?php
103                                 echo wp_video_shortcode( array(
104                                         'mp4'      => 'https://s.w.org/images/core/4.7/edit-shortcuts-v1.mp4',
105                                         'poster'   => 'https://s.w.org/images/core/4.7/edit-shortcuts.jpg?v2',
106                                         'loop'     => true,
107                                         'autoplay' => true,
108                                         'width'    => 2520,
109                                         'height'   => 1454,
110                                         // 'class'    => 'wp-video-shortcode feature-video',
111                                 ) );
112                                 ?>
113                                 <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>
114                         </div>
115                         <div class="col">
116                                 <h3><?php _e( 'Video Headers' ); ?></h3>
117                                 <?php
118                                 echo wp_video_shortcode( array(
119                                         'mp4'      => 'https://s.w.org/images/core/4.7/header-video-v1.mp4',
120                                         'poster'   => 'https://s.w.org/images/core/4.7/header-video.jpg?v2',
121                                         'loop'     => true,
122                                         'autoplay' => true,
123                                         'width'    => 2520,
124                                         'height'   => 1454,
125                                         // 'class'    => 'wp-video-shortcode feature-video',
126                                 ) );
127                                 ?>
128                                 <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>
129                         </div>
130                 </div>
131
132                 <div class="feature-section two-col">
133                         <div class="col">
134                                 <h3><?php _e( 'Smoother Menu Building' ); ?></h3>
135                                 <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="" />
136                                 <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>
137                         </div>
138                         <div class="col">
139                                 <h3><?php _e( 'Custom CSS' ); ?></h3>
140                                 <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="" />
141                                 <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>
142                         </div>
143                 </div>
144
145                 <hr />
146
147                 <div class="feature-section no-heading two-col">
148                         <div class="col">
149                                 <h3><?php _e( 'PDF Thumbnail Previews' ); ?></h3>
150                                 <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="" />
151                                 <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>
152                         </div>
153                         <div class="col">
154                                 <h3><?php _e( 'Dashboard in your language' ); ?></h3>
155                                 <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="" />
156                                 <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>
157                         </div>
158                 </div>
159
160                 <hr />
161
162                 <div class="rest-api feature-section one-col">
163                         <h2><?php _e( 'Introducing REST API Content Endpoints' ); ?></h2>
164                         <p class="lead-description"><?php _e( 'WordPress 4.7 comes with REST API endpoints for posts, comments, terms, users, meta, and settings.' ); ?></p>
165                         <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="" />
166                         <p><?php
167                                 printf(
168                                         /* translators: %s: https://developer.wordpress.org/rest-api/  */
169                                         __( '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>' ),
170                                         'https://developer.wordpress.org/rest-api/reference/'
171                                 );
172                         ?></p>
173                 </div>
174
175                 <hr />
176
177                 <div class="changelog">
178                         <h2><?php
179                                 printf(
180                                         /* translators: %s: smiling face with smiling eyes emoji */
181                                         __( 'Even More Developer Happiness %s' ),
182                                         '&#x1F60A'
183                                 );
184                         ?></h2>
185
186                         <div class="under-the-hood three-col">
187                                 <div class="col">
188                                         <h3><a href="https://make.wordpress.org/core/2016/11/03/post-type-templates-in-4-7/"><?php _e( 'Post Type Templates' ); ?></a></h3>
189                                         <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>
190                                 </div>
191                                 <div class="col">
192                                         <h3><?php _e( 'More Theme API Goodies' ); ?></h3>
193                                         <p><?php
194                                                 printf(
195                                                         /* translators: %s: https://make.wordpress.org/core/2016/09/09/new-functions-hooks-and-behaviour-for-theme-developers-in-wordpress-4-7/  */
196                                                         __( 'WordPress 4.7 includes <a href="%s">new functions, hooks, and behavior</a> for theme developers.' ),
197                                                         'https://make.wordpress.org/core/2016/09/09/new-functions-hooks-and-behaviour-for-theme-developers-in-wordpress-4-7/'
198                                                 );
199                                         ?></p>
200                                 </div>
201                                 <div class="col">
202                                         <h3><a href="https://make.wordpress.org/core/2016/10/04/custom-bulk-actions/"><?php _e( 'Custom Bulk Actions' ); ?></a></h3>
203                                         <p><?php _e( 'List tables, now with more than bulk edit and delete.' ); ?></p>
204                                 </div>
205                         </div>
206
207                         <div class="under-the-hood three-col">
208                                 <div class="col">
209                                         <h3><a href="https://make.wordpress.org/core/2016/09/08/wp_hook-next-generation-actions-and-filters/"><code>WP_Hook</code></a></h3>
210                                         <p><?php
211                                                 printf(
212                                                         /* translators: %s: https://make.wordpress.org/core/2016/09/08/wp_hook-next-generation-actions-and-filters/  */
213                                                         __( 'The code that lies beneath actions and filters has been overhauled and modernized, fixing bugs along the way.' ),
214                                                         'https://make.wordpress.org/core/2016/09/08/wp_hook-next-generation-actions-and-filters/'
215                                                 );
216                                         ?></p>
217                                 </div>
218                                 <div class="col">
219                                         <h3><?php _e( 'Settings Registration API' ); ?></h3>
220                                         <p><?php
221                                                 printf(
222                                                         /* translators: 1: register_setting(), 2: https://make.wordpress.org/core/2016/10/26/registering-your-settings-in-wordpress-4-7/ */
223                                                         __( '%1$s <a href="%2$s">has been enhanced</a> to include type, description, and REST API visibility.' ),
224                                                         '<code>register_setting()</code>',
225                                                         'https://make.wordpress.org/core/2016/10/26/registering-your-settings-in-wordpress-4-7/'
226                                                 );
227                                         ?></p>
228                                 </div>
229                                 <div class="col">
230                                         <h3><a href="https://make.wordpress.org/core/2016/10/12/customize-changesets-technical-design-decisions/"><?php _e( 'Customize Changesets' ); ?></a></h3>
231                                         <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>
232                                 </div>
233                         </div>
234
235                 </div>
236
237                 <hr />
238
239                 <div class="return-to-dashboard">
240                         <?php if ( current_user_can( 'update_core' ) && isset( $_GET['updated'] ) ) : ?>
241                                 <a href="<?php echo esc_url( self_admin_url( 'update-core.php' ) ); ?>">
242                                         <?php is_multisite() ? _e( 'Return to Updates' ) : _e( 'Return to Dashboard &rarr; Updates' ); ?>
243                                 </a> |
244                         <?php endif; ?>
245                         <a href="<?php echo esc_url( self_admin_url() ); ?>"><?php is_blog_admin() ? _e( 'Go to Dashboard &rarr; Home' ) : _e( 'Go to Dashboard' ); ?></a>
246                 </div>
247
248         </div>
249 <?php
250
251 include( ABSPATH . 'wp-admin/admin-footer.php' );
252
253 // These are strings we may use to describe maintenance/security releases, where we aim for no new strings.
254 return;
255
256 __( 'Maintenance Release' );
257 __( 'Maintenance Releases' );
258
259 __( 'Security Release' );
260 __( 'Security Releases' );
261
262 __( 'Maintenance and Security Release' );
263 __( 'Maintenance and Security Releases' );
264
265 /* translators: %s: WordPress version number */
266 __( '<strong>Version %s</strong> addressed one security issue.' );
267 /* translators: %s: WordPress version number */
268 __( '<strong>Version %s</strong> addressed some security issues.' );
269
270 /* translators: 1: WordPress version number, 2: plural number of bugs. */
271 _n_noop( '<strong>Version %1$s</strong> addressed %2$s bug.',
272          '<strong>Version %1$s</strong> addressed %2$s bugs.' );
273
274 /* translators: 1: WordPress version number, 2: plural number of bugs. Singular security issue. */
275 _n_noop( '<strong>Version %1$s</strong> addressed a security issue and fixed %2$s bug.',
276          '<strong>Version %1$s</strong> addressed a security issue and fixed %2$s bugs.' );
277
278 /* translators: 1: WordPress version number, 2: plural number of bugs. More than one security issue. */
279 _n_noop( '<strong>Version %1$s</strong> addressed some security issues and fixed %2$s bug.',
280          '<strong>Version %1$s</strong> addressed some security issues and fixed %2$s bugs.' );
281
282 /* translators: %s: Codex URL */
283 __( 'For more information, see <a href="%s">the release notes</a>.' );