diff --git a/src/wp-admin/about.php b/src/wp-admin/about.php
index 68de892a54..f732692301 100644
a
|
b
|
|
9 | 9 | /** WordPress Administration Bootstrap */ |
10 | 10 | require_once( dirname( __FILE__ ) . '/admin.php' ); |
11 | 11 | |
12 | | wp_enqueue_script( 'underscore' ); |
13 | | |
14 | 12 | /* translators: Page title of the About WordPress page in the admin. */ |
15 | 13 | $title = _x( 'About', 'page title' ); |
16 | 14 | |
17 | 15 | list( $display_version ) = explode( '-', get_bloginfo( 'version' ) ); |
18 | 16 | |
19 | | wp_enqueue_style( 'wp-block-library' ); |
20 | | |
21 | 17 | include( ABSPATH . 'wp-admin/admin-header.php' ); |
22 | 18 | ?> |
23 | 19 | <div class="wrap about-wrap full-width-layout"> |
24 | | <h1><?php printf( __( 'Welcome to WordPress %s' ), $display_version ); ?></h1> |
25 | | |
26 | | <p class="about-text"><?php printf( __( 'Thank you for updating to the latest version!' ), $display_version ); ?></p> |
27 | | |
28 | | <div class="wp-badge"><?php printf( __( 'Version %s' ), $display_version ); ?></div> |
| 20 | <h1> |
| 21 | <?php |
| 22 | /* translators: %s: The current WordPress version number */ |
| 23 | printf( __( 'Welcome to WordPress %s' ), $display_version ); |
| 24 | ?> |
| 25 | </h1> |
| 26 | |
| 27 | <p class="about-text"><?php printf( __( 'Congratulations on updating to WordPress 5.2! This update makes it easier than ever to fix your site if something goes wrong.' ), $display_version ); ?></p> |
| 28 | |
| 29 | <div class="wp-badge"> |
| 30 | <?php |
| 31 | /* translators: %s: The current WordPress version number */ |
| 32 | printf( __( 'Version %s' ), $display_version ); |
| 33 | ?> |
| 34 | </div> |
29 | 35 | |
30 | 36 | <nav class="nav-tab-wrapper wp-clearfix" aria-label="<?php esc_attr_e( 'Secondary menu' ); ?>"> |
31 | 37 | <a href="about.php" class="nav-tab nav-tab-active"><?php _e( 'What’s New' ); ?></a> |
… |
… |
include( ABSPATH . 'wp-admin/admin-header.php' ); |
34 | 40 | <a href="freedoms.php?privacy-notice" class="nav-tab"><?php _e( 'Privacy' ); ?></a> |
35 | 41 | </nav> |
36 | 42 | |
37 | | <h2 class="feature-section-header"><?php _e( 'A Little Better Every Day' ); ?></h2> |
| 43 | <h2 class="feature-section-header"><?php _e( 'Keeping Your Site Safe' ); ?></h2> |
38 | 44 | |
39 | 45 | <div class="feature-section headline-feature one-col"> |
40 | 46 | <div class="col"> |
| 47 | <p><?php _e( 'WordPress 5.2 gives you even more robust tools for identifying and fixing configuration issues and fatal errors. Whether you are a developer helping clients or you manage your site solo, these tools can help get you the right information when you need it.' ); ?></p> |
41 | 48 | <div class="inline-svg"> |
42 | | <img src="https://s.w.org/images/core/5.1/update.svg" alt=""> |
| 49 | <img src="https://make.wordpress.org/core/files/2019/04/site-safe.png" alt=""> |
43 | 50 | </div> |
44 | | <p><?php _e( 'You’ve successfully upgraded to WordPress 5.1! Following WordPress 5.0—a major release which introduced the new block editor—5.1 focuses on polish, in particular by improving overall performance of the editor. In addition, this release paves the way for a better, faster, and more secure WordPress with some essential tools for site administrators and developers.' ); ?></p> |
45 | 51 | </div> |
46 | 52 | </div> |
47 | 53 | |
| 54 | <hr /> |
| 55 | |
48 | 56 | <div class="feature-section one-col is-wide wp-clearfix"> |
49 | 57 | <div class="col"> |
50 | | <h3><?php _e( 'Site Health' ); ?></h3> |
| 58 | <h3><?php _e( 'Site Health Check' ); ?></h3> |
51 | 59 | <div class="inline-svg alignright"> |
52 | | <img src="https://s.w.org/images/core/5.1/site-health.svg" alt=""> |
| 60 | <img src="https://make.wordpress.org/core/files/2019/04/health-check.png" alt=""> |
53 | 61 | </div> |
54 | | <p><?php printf( __( 'With security and speed in mind, this release introduces WordPress’s first <a href="%s">Site Health</a> features. WordPress will start showing notices to administrators of sites that run long-outdated versions of PHP, which is the programming language that powers WordPress.' ), 'https://make.wordpress.org/core/2019/01/14/php-site-health-mechanisms-in-5-1/' ); ?></p> |
55 | | |
56 | | <p><?php _e( 'When installing new plugins, WordPress’s Site Health features will check whether a plugin requires a version of PHP incompatible with your site. If so, WordPress will prevent you from installing that plugin.' ); ?></p> |
57 | | |
58 | | <?php |
59 | | $response = wp_check_php_version(); |
60 | | if ( $response && isset( $response['is_acceptable'] ) && ! $response['is_acceptable'] && current_user_can( 'update_php' ) ) : |
| 62 | <p> |
| 63 | <?php |
| 64 | printf( |
| 65 | /* translators: 1: link to the WordPress 5.1 release post 2: link to /wp-admin/site-health.php 3: link to /wp-admin/site-health.php?tab=debug */ |
| 66 | __( 'Building on the <a href="%1$s">Site Health</a> features introduced in 5.1, this release adds two new pages to help debug common configuration issues. It also adds space where developers can include debugging information for site maintainers. Check your site <a href="%2$s">status</a>, and learn how to <a href="%3$s">debug</a> issues.' ), |
| 67 | __( 'https://wordpress.org/news/2019/02/betty/' ), |
| 68 | admin_url( 'site-health.php' ), |
| 69 | admin_url( 'site-health.php?tab=debug' ) |
| 70 | ); |
61 | 71 | ?> |
62 | | <p><em><?php _e( 'WordPress has detected your site is running an outdated version of PHP. You will see this notice on your dashboard with instructions for contacting your host.' ); ?></em></p> |
63 | | <?php endif; ?> |
64 | | |
65 | | <p><a class="button button-default button-hero" href="<?php echo esc_url( wp_get_update_php_url() ); ?>"><?php _e( 'Learn more about updating PHP' ); ?></a></p> |
| 72 | </p> |
66 | 73 | </div> |
67 | 74 | </div> |
68 | 75 | |
| 76 | <hr /> |
| 77 | |
69 | 78 | <div class="feature-section one-col is-wide wp-clearfix"> |
70 | 79 | <div class="col"> |
71 | | <h3><?php _e( 'Editor Performance' ); ?></h3> |
72 | | <div class="inline-svg alignright"> |
73 | | <img src="https://s.w.org/images/core/5.1/editor-performance.svg" alt=""> |
| 80 | <div class="inline-svg alignleft"> |
| 81 | <img src="https://make.wordpress.org/core/files/2019/04/error-protection.png" alt=""> |
74 | 82 | </div> |
75 | | <p><?php _e( 'Introduced in WordPress 5.0, the new block editor continues to improve. Most significantly, WordPress 5.1 includes solid performance improvements within the editor. The editor should feel a little quicker to start, and typing should feel smoother. Nevertheless, expect more performance improvements in the next releases.' ); ?></p> |
76 | | <?php if ( current_user_can( 'edit_posts' ) ) : ?> |
77 | | <p><a class="button button-default button-hero" href="<?php echo esc_url( admin_url( 'post-new.php' ) ); ?>"><?php _e( 'Build your first post' ); ?></a></p> |
78 | | <?php endif; ?> |
| 83 | <h3><?php _e( 'PHP Error Protection' ); ?></h3> |
| 84 | <p><?php _e( 'This administrator-focused update will let you safely fix or manage fatal errors without requiring developer time. It features better handling of the so-called “white screen of death,” and a way to enter recovery mode, which pauses error-causing plugins or themes.' ); ?></p> |
79 | 85 | </div> |
80 | 86 | </div> |
81 | 87 | |
82 | 88 | <hr /> |
83 | 89 | |
84 | | <h3 class="under-the-hood-header"><?php _e( 'Developer Happiness' ); ?></h3> |
| 90 | <h3 class="under-the-hood-header"><?php _e( 'Improvements for Everyone' ); ?></h3> |
85 | 91 | |
86 | | <div class="under-the-hood feature-section three-col"> |
87 | | <div class="col"> |
88 | | <h4><?php _e( 'Multisite Metadata' ); ?></h4> |
89 | | <p> |
90 | | <?php _e( '5.1 introduces a new database table to store metadata associated with sites and allows for the storage of arbitrary site data relevant in a multisite / network context.' ); ?> |
91 | | <br> |
92 | | <?php printf( __( '<a href="%s">Read more.</a>' ), 'https://make.wordpress.org/core/2019/01/28/multisite-support-for-site-metadata-in-5-1/' ); ?> |
93 | | </p> |
| 92 | <div class="under-the-hood feature-section two-col"> |
| 93 | <div class="col cta"> |
| 94 | <h4><?php _e( 'Accessibility Updates' ); ?></h4> |
| 95 | <p><?php _e( 'A number of changes work together to improve contextual awareness and keyboard navigation flow for those using screen readers and other assistive technologies.' ); ?></p> |
94 | 96 | </div> |
| 97 | <div class="col cta"> |
| 98 | <h4><?php _e( 'New Dashboard Icons' ); ?></h4> |
| 99 | <p><?php _e( 'Thirteen new icons include Instagram, a suite of icons for BuddyPress, and rotated Earth icons for global inclusion. Find them in the Dashboard and have some fun!' ); ?></p> |
| 100 | </div> |
| 101 | </div> |
| 102 | |
| 103 | <hr /> |
| 104 | |
| 105 | <h3 class="under-the-hood-header"><?php _e( 'Developer Happiness' ); ?></h3> |
| 106 | |
| 107 | <div class="under-the-hood feature-section two-col"> |
95 | 108 | <div class="col"> |
96 | | <h4><?php _e( 'Cron API' ); ?></h4> |
97 | | <p> |
98 | | <?php _e( 'The Cron API has been updated with new functions to assist with returning data and includes new filters for modifying cron storage. Other changes in behavior affect cron spawning on servers running FastCGI and PHP-FPM versions 7.0.16 and above.' ); ?> |
99 | | <br> |
100 | | <?php printf( __( '<a href="%s">Read more.</a>' ), 'https://make.wordpress.org/core/2019/01/09/cron-improvements-with-php-fpm-in-wordpress-5-1/' ); ?> |
101 | | </p> |
| 109 | <h4><a href="https://make.wordpress.org/core/2019/03/26/coding-standards-updates-for-php-5-6/"><?php _e( 'PHP Version Bump' ); ?></a></h4> |
| 110 | <p><?php _e( 'The minimum supported PHP version is now 5.6.20. As of WordPress 5.2, themes and plugins can safely take advantage of namespaces, anonymous functions, and more!' ); ?></p> |
102 | 111 | </div> |
103 | 112 | <div class="col"> |
104 | | <h4><?php _e( 'New JS Build Processes' ); ?></h4> |
105 | | <p> |
106 | | <?php _e( 'WordPress 5.1 features a new JavaScript build option, following the large reorganization of code started in the 5.0 release.' ); ?> |
107 | | <br> |
108 | | <?php printf( __( '<a href="%s">Read more.</a>' ), 'https://make.wordpress.org/core/2018/05/16/preparing-wordpress-for-a-javascript-future-part-1-build-step-and-folder-reorganization/' ); ?> |
109 | | </p> |
| 113 | <h4><a href="https://make.wordpress.org/core/2019/04/24/developer-focused-privacy-updates-in-5-2/"><?php _e( 'Privacy Updates' ); ?></a></h4> |
| 114 | <p><?php _e( 'A new theme page template, a conditional function, and two CSS classes make designing and customizing the Privacy Policy page easier.' ); ?></p> |
110 | 115 | </div> |
111 | 116 | </div> |
112 | | |
113 | 117 | <div class="under-the-hood feature-section two-col"> |
114 | | <div class="col is-span-two"> |
115 | | <h4><?php _e( 'Other Developer Goodness' ); ?></h4> |
116 | | <p> |
117 | | <?php _e( 'Miscellaneous improvements include updates to values for the <code>WP_DEBUG_LOG</code> constant, new test config file constant in the test suite, new plugin action hooks, short-circuit filters for <code>wp_unique_post_slug()</code> and <code>WP_User_Query</code> and <code>count_users()</code>, a new <code>human_readable_duration</code> function, improved taxonomy metabox sanitization, limited <code>LIKE</code> support for meta keys when using <code>WP_Meta_Query</code>, a new “doing it wrong” notice when registering REST API endpoints, and more!' ); ?> |
118 | | <br> |
119 | | <?php printf( __( '<a href="%s">Read more.</a>' ), 'https://make.wordpress.org/core/2019/01/23/miscellaneous-developer-focused-changes-in-5-1/' ); ?> |
120 | | </p> |
| 118 | <div class="col"> |
| 119 | <h4><a href="https://make.wordpress.org/core/2019/04/24/miscellaneous-developer-updates-in-5-2/"><?php _e( 'New Body Tag Hook' ); ?></a></h4> |
121 | 120 | <p> |
122 | | <a class="button button-default button-hero" href="<?php echo esc_url( 'https://developer.wordpress.org/' ); ?>"><?php _e( 'Learn how to get started' ); ?></a> |
| 121 | <?php |
| 122 | printf( |
| 123 | /* translators: 1: wp_body_open 2: <body> */ |
| 124 | __( '5.2 introduces a <code>%1$s</code> hook, which lets themes support injecting code right at the beginning of the <code>%2$s</code> element.' ), |
| 125 | 'wp_body_open', |
| 126 | '<body>' |
| 127 | ); |
| 128 | ?> |
123 | 129 | </p> |
124 | 130 | </div> |
125 | 131 | <div class="col"> |
126 | | <div class="inline-svg"> |
127 | | <img src="https://s.w.org/images/core/5.1/under-the-hood.svg" alt=""> |
128 | | </div> |
| 132 | <h4><a href="https://www.google.com/url?q=https://make.wordpress.org/core/2019/03/25/building-javascript/"><?php _e( 'Building JavaScript' ); ?></a></h4> |
| 133 | <p><?php _e( 'With the addition of webpack and Babel configurations in the @wordpress/scripts package, developers won’t have to worry about setting up complex build tools to write modern JavaScript.' ); ?></p> |
129 | 134 | </div> |
130 | 135 | </div> |
131 | 136 | |
132 | 137 | <hr /> |
133 | 138 | |
134 | | <?php if ( ! file_exists( WP_PLUGIN_DIR . '/classic-editor/classic-editor.php' ) ) : ?> |
135 | | <h2 class="feature-section-header"><?php _e( 'Keep it Classic' ); ?></h2> |
136 | | |
137 | | <div class="feature-section one-col" id="classic-editor"> |
138 | | <div class="col"> |
139 | | <p><?php _e( 'Prefer to stick with the familiar Classic Editor? No problem! Support for the Classic Editor plugin will remain in WordPress through 2021.' ); ?></p> |
140 | | <p><?php _e( 'The Classic Editor plugin restores the previous WordPress editor and the Edit Post screen. It lets you keep using plugins that extend it, add old-style meta boxes, or otherwise depend on the previous editor. To install, visit your plugins page and click the “Install Now” button next to “Classic Editor”. After the plugin finishes installing, click “Activate”. That’s it!' ); ?></p> |
141 | | <p><?php _e( 'Note to users of assistive technology: if you experience usability issues with the block editor, we recommend you continue to use the Classic Editor.' ); ?></p> |
142 | | <?php if ( current_user_can( 'install_plugins' ) ) { ?> |
143 | | <div class="col cta"> |
144 | | <a class="button button-primary button-hero" href="<?php echo esc_url( wp_nonce_url( self_admin_url( 'plugin-install.php?tab=favorites&user=wordpressdotorg&save=0' ), 'save_wporg_username_' . get_current_user_id() ) ); ?>"><?php _e( 'Install the Classic Editor' ); ?></a> |
145 | | </div> |
146 | | <?php } ?> |
147 | | </div> |
148 | | </div> |
149 | | |
150 | | <hr /> |
151 | | <?php endif; ?> |
152 | | |
153 | 139 | <div class="return-to-dashboard"> |
154 | 140 | <?php if ( current_user_can( 'update_core' ) && isset( $_GET['updated'] ) ) : ?> |
155 | 141 | <a href="<?php echo esc_url( self_admin_url( 'update-core.php' ) ); ?>"> |
diff --git a/src/wp-admin/css/about.css b/src/wp-admin/css/about.css
index 21952f2e21..1b172106d6 100644
a
|
b
|
|
237 | 237 | margin: 1em 0 2em; |
238 | 238 | } |
239 | 239 | |
240 | | .about-wrap .one-col .alignright img { |
| 240 | .about-wrap .one-col .alignright img, |
| 241 | .about-wrap .one-col .alignleft img { |
241 | 242 | margin-top: 0; |
242 | 243 | } |
243 | 244 | |
… |
… |
|
261 | 262 | margin-left: 80px; |
262 | 263 | } |
263 | 264 | |
| 265 | .about-wrap .inline-svg.alignleft { |
| 266 | margin-right: 80px; |
| 267 | } |
| 268 | |
264 | 269 | .about-wrap .cta { |
265 | 270 | text-align: center; |
266 | 271 | } |
… |
… |
|
513 | 518 | max-width: 150px; |
514 | 519 | } |
515 | 520 | |
| 521 | .about-wrap .one-col .alignleft { |
| 522 | margin-right: 20px; |
| 523 | max-width: 150px; |
| 524 | } |
| 525 | |
516 | 526 | .about-wrap .two-col .col, |
517 | 527 | .about-wrap .three-col .col, |
518 | 528 | .about-wrap .four-col .col { |
… |
… |
|
568 | 578 | width: 100%; |
569 | 579 | } |
570 | 580 | |
571 | | .about-wrap .one-col .alignright { |
| 581 | .about-wrap .one-col .alignright, |
| 582 | .about-wrap .one-col .alignleft { |
572 | 583 | max-width: 120px; |
573 | 584 | } |
574 | 585 | |
… |
… |
|
613 | 624 | } |
614 | 625 | |
615 | 626 | @media only screen and (max-width: 320px) { |
616 | | .about-wrap .one-col .alignright { |
| 627 | .about-wrap .one-col .alignright, |
| 628 | .about-wrap .one-col .alignleft { |
617 | 629 | float: none; |
618 | 630 | margin: 0 auto; |
619 | 631 | } |
620 | | .about-wrap .one-col .alignright img { |
| 632 | .about-wrap .one-col .alignright img, |
| 633 | .about-wrap .one-col .alignleft img { |
621 | 634 | margin: 0 0 1em; |
622 | 635 | } |
623 | 636 | } |