mirrored from git://develop.git.wordpress.org/
/
about.php
309 lines (270 loc) · 13.4 KB
/
about.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
<?php
/**
* About This Version administration panel.
*
* @package WordPress
* @subpackage Administration
*/
/** WordPress Administration Bootstrap */
require_once __DIR__ . '/admin.php';
/* translators: Page title of the About WordPress page in the admin. */
$title = _x( 'About', 'page title' );
list( $display_version ) = explode( '-', get_bloginfo( 'version' ) );
require_once ABSPATH . 'wp-admin/admin-header.php';
?>
<div class="wrap about__container">
<div class="about__header">
<div class="about__header-text">
<?php _e( 'Speed. Search. Security.' ); ?>
</div>
<div class="about__header-title">
<p>
<?php _e( 'WordPress' ); ?>
<span><?php echo $display_version; ?></span>
</p>
</div>
<div class="about__header-text">
Musician Name
</div>
<nav class="about__header-navigation nav-tab-wrapper wp-clearfix" aria-label="<?php esc_attr_e( 'Secondary menu' ); ?>">
<a href="about.php" class="nav-tab nav-tab-active" aria-current="page"><?php _e( 'What’s New' ); ?></a>
<a href="credits.php" class="nav-tab"><?php _e( 'Credits' ); ?></a>
<a href="freedoms.php" class="nav-tab"><?php _e( 'Freedoms' ); ?></a>
<a href="privacy.php" class="nav-tab"><?php _e( 'Privacy' ); ?></a>
</nav>
</div>
<div class="about__section is-feature has-subtle-background-color">
<h1>
<?php
printf(
/* translators: %s: The current WordPress version number. */
__( 'Welcome to WordPress %s.' ),
$display_version
);
?>
</h1>
<p>
<?php
printf(
/* translators: %s: The current WordPress version number. */
__( 'In WordPress %s, your site gets new power in three major areas: speed, search, and security.' ),
$display_version
);
?>
</p>
</div>
<hr />
<div class="about__section has-1-column">
<div class="column">
<h2><?php _e( 'Speed' ); ?></h2>
<p><strong><?php _e( 'Posts and pages feel faster, thanks to lazy-loaded images.' ); ?></strong></p>
<p><?php _e( 'Images give your story a lot of impact, but they can sometimes make your site seem slow.' ); ?></p>
<p><?php _e( 'In WordPress 5.5, images wait to load until they’re just about to scroll into view. The technical term is ‘lazy loading.’' ); ?></p>
<p><?php _e( 'On mobile, lazy loading can also keep browsers from loading files meant for other devices. That can save your readers money on data — and help preserve battery life.' ); ?></p>
</div>
</div>
<div class="about__section has-1-column">
<div class="column">
<h2><?php _ex( 'Search', 'sitemap' ); ?></h2>
<p><strong><?php _e( 'Say hello to your new sitemap.' ); ?></strong></p>
<p><?php _e( 'WordPress sites work well with search engines. ' ); ?></p>
<p><?php _e( 'Now, by default, WordPress 5.5 includes an XML sitemap that helps search engines discover your most important pages from the very minute you go live.' ); ?></p>
<p><?php _e( 'So more people will find your site sooner, giving you more time to engage, retain and convert them to subscribers, customers or whatever fits your definition of success.' ); ?></p>
</div>
</div>
<hr />
<div class="about__section has-2-columns has-accent-background-color is-wider-right">
<div class="column">
<h2><?php _e( 'Security' ); ?></h2>
<p><strong><?php _e( 'Auto-updates for Plugins and Themes' ); ?></strong></p>
<p><?php _e( 'Now you can set plugins and themes to update automatically — or not! — in the WordPress admin. So you always know your site is running the latest code available.' ); ?></p>
<p><?php _e( 'You can also turn auto-updates on or off for each plugin or theme you have installed — all on the same screens you’ve always used.' ); ?></p>
</div>
<div class="column about__image is-vertically-aligned-center">
<img src="http://trunk.wordpress.test/wp-content/uploads/2020/07/helphub-update-theme-enable.png" alt="" />
</div>
</div>
<div class="about__section has-2-columns has-accent-background-color is-wider-left">
<div class="column is-vertically-aligned-center">
<figure class="about__image">
<video controls>
<source src="http://trunk.wordpress.test/wp-content/uploads/2020/07/helphub-update-bulk-plugins.mp4" type="video/mp4" />
</video>
<figcaption class="screen-reader-text"><!-- Needs alt text --></figcaption>
</figure>
</div>
<div class="column">
<p><strong><?php _e( 'Update by uploading ZIP files' ); ?></strong></p>
<p><?php _e( 'If updating plugins and themes manually is your thing, now that’s easier too — just upload a ZIP file.' ); ?></p>
</div>
</div>
<hr />
<div class="about__section has-subtle-background-color">
<div class="column">
<h2><?php _e( 'Highlights from the block editor' ); ?></h2>
<p><?php _e( 'Once again, the latest WordPress release packs a long list of exciting new features for the block editor. For example:' ); ?></p>
</div>
</div>
<div class="about__section has-2-columns has-subtle-background-color">
<div class="column">
<figure class="about__image">
<video controls poster="http://trunk.wordpress.test/wp-content/uploads/2020/07/block-pattern-poster.png">
<source src="http://trunk.wordpress.test/wp-content/uploads/2020/07/block-patterns.mp4" type="video/mp4" />
</video>
<figcaption class="screen-reader-text"><?php _e( 'New block patterns in WordPress 5.5 give you instant access to a variety of sophisticated layouts. Browse and choose the ones that tell your story, then style them to match your brand. All in real time, in one place, without ever looking away from your task in the block editor.' ); ?></figcaption>
</figure>
<h3><?php _e( 'Block patterns' ); ?></h3>
<p><?php _e( 'New block patterns make it simple and fun to create complex, beautiful layouts, using combinations of text and media that you can mix and match to fit your story.' ); ?></p>
<p><?php _e( 'You will also find block patterns in a wide variety of plugins and themes, with more added all the time. Pick any of them from a single place — just click and go!' ); ?></p>
</div>
<div class="column">
<figure class="about__image">
<video controls poster="http://trunk.wordpress.test/wp-content/uploads/2020/07/image-editor-poster.png">
<source src="http://trunk.wordpress.test/wp-content/uploads/2020/07/image-editor.mp4" type="video/mp4" />
</video>
<figcaption class="screen-reader-text"><?php _e( 'The image editor in WordPress 5.5 lets you choose, scale, crop and rotate images in real time, without leaving the block editor.' ); ?></figcaption>
</figure>
<h3><?php _e( 'Inline image editing' ); ?></h3>
<p><?php _e( 'Crop, rotate, and zoom your photos right from the image block. If you spend a lot of time on images, this could save you hours!' ); ?></p>
<h3><?php _e( 'The New Block Directory' ); ?></h3>
<p><?php _e( 'Now it’s easier than ever to find the block you need. The new block directory is built right into the block editor, so you can install new block types to your site without ever leaving the editor.' ); ?></p>
<h3><?php _e( 'And so much more.' ); ?></h3>
<p><?php _e( 'These highlights are a tiny fraction of the new block-editor features you’ve just installed. Open the block editor and enjoy!' ); ?></p>
</div>
</div>
<hr />
<div class="about__section has-1-column">
<div class="column">
<h2><?php _e( 'Accessibility' ); ?></h2>
<p><?php _e( 'Every release adds improvements to the accessible publishing experience, and that remains true for WordPress 5.5. ' ); ?></p>
<p><?php _e( 'Now you can copy links in media screens and modal dialogs with a button, instead of trying to highlight a line of text.' ); ?></p>
<p><?php _e( 'You can also move meta boxes with the keyboard, and edit images in WordPress with your assistive device, as it can read you the instructions in the image editor.' ); ?></p>
</div>
</div>
<hr />
<div class="about__section has-subtle-background-color has-2-columns">
<header class="is-section-header">
<h2><?php _e( 'For developers' ); ?></h2>
<p><?php _e( '5.5 also brings a big box of changes just for developers.' ); ?></p>
</header>
<div class="column">
<h3><?php _e( 'Server-side registered blocks in the REST API' ); ?></h3>
<p><?php _e( 'The addition of block types endpoints means that JavaScript apps (like the block editor) can retrieve definitions for any blocks registered on the server.' ); ?></p>
</div>
<div class="column">
<h3><?php _e( 'Dashicons' ); ?></h3>
<p><?php _e( 'The Dashicons library has received its final update in 5.5. It adds 39 block-editor icons along with 26 others.' ); ?></p>
</div>
</div>
<div class="about__section has-subtle-background-color has-2-columns">
<div class="column">
<h3><?php _e( 'Defining environments' ); ?></h3>
<p>
<?php
printf(
/* translators: %s: 'wp_get_environment_type' function name. */
__( 'WordPress now has a standardized way to define a site’s environment type (staging, production, etc). Retrieve that type with %s and execute only the appropriate code.' ),
'<code>wp_get_environment_type()</code>'
);
?>
</p>
</div>
<div class="column">
<h3><?php _e( 'Passing data to template files' ); ?></h3>
<p>
<?php
printf(
/* translators: %1$s: 'get_header' function name, %2$s: 'get_template_part' function name, %3$s: '$args' variable name. */
__( 'The template loading functions (%1$s, %2$s, etc.) have a new %3$s argument. So now you can pass an entire array’s worth of data to those templates.' ),
'<code>get_header()</code>',
'<code>get_template_part()</code>',
'<code>$args</code>'
);
?>
</p>
</div>
</div>
<div class="about__section has-subtle-background-color">
<div class="column">
<h3><?php _e( 'More changes for developers' ); ?></h3>
<ul>
<li><?php _e( 'The PHPMailer library just got a major update, going from version 5.2.27 to 6.1.6.' ); ?></li>
<li>
<?php
printf(
/* translators: %s: 'redirect_guess_404_permalink' function name. */
__( 'Now get more fine-grained control of %s.' ),
'<code>redirect_guess_404_permalink()</code>'
);
?>
</li>
<li>
<?php
printf(
/* translators: %s: 'wp_opcache_invalidate' function name. */
__( 'Sites that use PHP’s OPcache will see more reliable cache invalidation, thanks to the new %s function during updates (including to plugins and themes).' ),
'<code>wp_opcache_invalidate()</code>'
);
?>
</li>
<li><?php _e( 'New filters let custom post types associated with the category taxonomy have a default term beyond “Uncategorized”.' ); ?></li>
<li><?php _e( 'You will find updated versions of these bundled libraries: SimplePie, Twemoji, Masonry, imagesLoaded, getID3, Moment.js, and clipboard.js.' ); ?></li>
</ul>
</div>
</div>
<hr class="is-small" />
<div class="about__section">
<div class="column">
<h3><?php _e( 'Check the Field Guide for more!' ); ?></h3>
<p>
<?php
printf(
/* translators: %s: WordPress 5.5 Field Guide link. */
__( 'There’s a lot more for developers to love in WordPress 5.5. To discover more and learn how to make these changes shine on your sites, themes, plugins and more, check the <a href="%s">WordPress 5.5 Field Guide.</a>' ),
'https://make.wordpress.org/core/wordpress-5-5-field-guide/'
);
?>
</p>
</div>
</div>
<hr />
<div class="return-to-dashboard">
<?php if ( current_user_can( 'update_core' ) && isset( $_GET['updated'] ) ) : ?>
<a href="<?php echo esc_url( self_admin_url( 'update-core.php' ) ); ?>">
<?php is_multisite() ? _e( 'Return to Updates' ) : _e( 'Return to Dashboard → Updates' ); ?>
</a> |
<?php endif; ?>
<a href="<?php echo esc_url( self_admin_url() ); ?>"><?php is_blog_admin() ? _e( 'Go to Dashboard → Home' ) : _e( 'Go to Dashboard' ); ?></a>
</div>
</div>
<?php
require_once ABSPATH . 'wp-admin/admin-footer.php';
// These are strings we may use to describe maintenance/security releases, where we aim for no new strings.
return;
__( 'Maintenance Release' );
__( 'Maintenance Releases' );
__( 'Security Release' );
__( 'Security Releases' );
__( 'Maintenance and Security Release' );
__( 'Maintenance and Security Releases' );
/* translators: %s: WordPress version number. */
__( '<strong>Version %s</strong> addressed one security issue.' );
/* translators: %s: WordPress version number. */
__( '<strong>Version %s</strong> addressed some security issues.' );
/* translators: 1: WordPress version number, 2: Plural number of bugs. */
_n_noop(
'<strong>Version %1$s</strong> addressed %2$s bug.',
'<strong>Version %1$s</strong> addressed %2$s bugs.'
);
/* translators: 1: WordPress version number, 2: Plural number of bugs. Singular security issue. */
_n_noop(
'<strong>Version %1$s</strong> addressed a security issue and fixed %2$s bug.',
'<strong>Version %1$s</strong> addressed a security issue and fixed %2$s bugs.'
);
/* translators: 1: WordPress version number, 2: Plural number of bugs. More than one security issue. */
_n_noop(
'<strong>Version %1$s</strong> addressed some security issues and fixed %2$s bug.',
'<strong>Version %1$s</strong> addressed some security issues and fixed %2$s bugs.'
);
/* translators: %s: Documentation URL. */
__( 'For more information, see <a href="%s">the release notes</a>.' );