Skip to content

Commit 2e9ff2b

Browse files
committed
Huge plugin and theme updates
1 parent bc60053 commit 2e9ff2b

File tree

1,965 files changed

+208174
-42941
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,965 files changed

+208174
-42941
lines changed

wp-activate.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ function wpmu_activate_stylesheet() {
125125
<?php
126126
}
127127
} else {
128-
$url = isset( $result['blog_id'] ) ? get_blogaddress_by_id( (int) $result['blog_id'] ) : '';
128+
$url = isset( $result['blog_id'] ) ? get_home_url( (int) $result['blog_id'] ) : '';
129129
$user = get_userdata( (int) $result['user_id'] );
130130
?>
131131
<h2><?php _e('Your account is now active!'); ?></h2>

wp-admin/about.php

+142-107
Large diffs are not rendered by default.

wp-admin/admin-footer.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383
*
8484
* @param string $hook_suffix The current admin page.
8585
*/
86-
do_action( "admin_print_footer_scripts-$hook_suffix" );
86+
do_action( "admin_print_footer_scripts-{$hook_suffix}" );
8787

8888
/**
8989
* Prints any scripts and data queued for the footer.
@@ -103,7 +103,7 @@
103103
* @global string $hook_suffix
104104
* @param string $hook_suffix The current admin page.
105105
*/
106-
do_action( "admin_footer-$hook_suffix" );
106+
do_action( "admin_footer-{$hook_suffix}" );
107107

108108
// get_site_option() won't exist when auto upgrading from <= 2.7
109109
if ( function_exists('get_site_option') ) {

wp-admin/admin-header.php

+20-15
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,11 @@
1818
* @global WP_Screen $current_screen
1919
* @global WP_Locale $wp_locale
2020
* @global string $pagenow
21-
* @global string $wp_version
2221
* @global string $update_title
2322
* @global int $total_update_count
2423
* @global string $parent_file
2524
*/
26-
global $title, $hook_suffix, $current_screen, $wp_locale, $pagenow, $wp_version,
25+
global $title, $hook_suffix, $current_screen, $wp_locale, $pagenow,
2726
$update_title, $total_update_count, $parent_file;
2827

2928
// Catch plugins that include admin-header.php before admin.php completes.
@@ -33,17 +32,23 @@
3332
get_admin_page_title();
3433
$title = esc_html( strip_tags( $title ) );
3534

36-
if ( is_network_admin() )
37-
$admin_title = sprintf( __( 'Network Admin: %s' ), esc_html( get_current_site()->site_name ) );
38-
elseif ( is_user_admin() )
39-
$admin_title = sprintf( __( 'User Dashboard: %s' ), esc_html( get_current_site()->site_name ) );
40-
else
35+
if ( is_network_admin() ) {
36+
/* translators: Network admin screen title. 1: Network name */
37+
$admin_title = sprintf( __( 'Network Admin: %s' ), esc_html( get_network()->site_name ) );
38+
} elseif ( is_user_admin() ) {
39+
/* translators: User dashboard screen title. 1: Network name */
40+
$admin_title = sprintf( __( 'User Dashboard: %s' ), esc_html( get_network()->site_name ) );
41+
} else {
4142
$admin_title = get_bloginfo( 'name' );
43+
}
4244

43-
if ( $admin_title == $title )
45+
if ( $admin_title == $title ) {
46+
/* translators: Admin screen title. 1: Admin screen name */
4447
$admin_title = sprintf( __( '%1$s &#8212; WordPress' ), $title );
45-
else
48+
} else {
49+
/* translators: Admin screen title. 1: Admin screen name, 2: Network or site name */
4650
$admin_title = sprintf( __( '%1$s &lsaquo; %2$s &#8212; WordPress' ), $title, $admin_title );
51+
}
4752

4853
/**
4954
* Filters the title tag content for an admin page.
@@ -96,7 +101,7 @@
96101
*
97102
* @since 2.6.0
98103
*/
99-
do_action( "admin_print_styles-$hook_suffix" );
104+
do_action( "admin_print_styles-{$hook_suffix}" );
100105

101106
/**
102107
* Fires when styles are printed for all admin pages.
@@ -110,7 +115,7 @@
110115
*
111116
* @since 2.1.0
112117
*/
113-
do_action( "admin_print_scripts-$hook_suffix" );
118+
do_action( "admin_print_scripts-{$hook_suffix}" );
114119

115120
/**
116121
* Fires when scripts are printed for all admin pages.
@@ -127,7 +132,7 @@
127132
*
128133
* @since 2.1.0
129134
*/
130-
do_action( "admin_head-$hook_suffix" );
135+
do_action( "admin_head-{$hook_suffix}" );
131136

132137
/**
133138
* Fires in head section for all admin pages.
@@ -154,10 +159,10 @@
154159
if ( $current_screen->taxonomy )
155160
$admin_body_class .= ' taxonomy-' . $current_screen->taxonomy;
156161

157-
$admin_body_class .= ' branch-' . str_replace( array( '.', ',' ), '-', floatval( $wp_version ) );
158-
$admin_body_class .= ' version-' . str_replace( '.', '-', preg_replace( '/^([.0-9]+).*/', '$1', $wp_version ) );
162+
$admin_body_class .= ' branch-' . str_replace( array( '.', ',' ), '-', floatval( get_bloginfo( 'version' ) ) );
163+
$admin_body_class .= ' version-' . str_replace( '.', '-', preg_replace( '/^([.0-9]+).*/', '$1', get_bloginfo( 'version' ) ) );
159164
$admin_body_class .= ' admin-color-' . sanitize_html_class( get_user_option( 'admin_color' ), 'fresh' );
160-
$admin_body_class .= ' locale-' . sanitize_html_class( strtolower( str_replace( '_', '-', get_locale() ) ) );
165+
$admin_body_class .= ' locale-' . sanitize_html_class( strtolower( str_replace( '_', '-', get_user_locale() ) ) );
161166

162167
if ( wp_is_mobile() )
163168
$admin_body_class .= ' mobile';

wp-admin/admin.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@
209209
*
210210
* @since 2.1.0
211211
*/
212-
do_action( 'load-' . $page_hook );
212+
do_action( "load-{$page_hook}" );
213213
if (! isset($_GET['noheader']))
214214
require_once(ABSPATH . 'wp-admin/admin-header.php');
215215

@@ -239,7 +239,7 @@
239239
*
240240
* @since 1.5.0
241241
*/
242-
do_action( 'load-' . $plugin_page );
242+
do_action( "load-{$plugin_page}" );
243243

244244
if ( !isset($_GET['noheader']))
245245
require_once(ABSPATH . 'wp-admin/admin-header.php');
@@ -278,7 +278,7 @@
278278
*
279279
* @since 3.5.0
280280
*/
281-
do_action( 'load-importer-' . $importer );
281+
do_action( "load-importer-{$importer}" );
282282

283283
$parent_file = 'tools.php';
284284
$submenu_file = 'import.php';
@@ -326,7 +326,7 @@
326326
*
327327
* @since 2.1.0
328328
*/
329-
do_action( 'load-' . $pagenow );
329+
do_action( "load-{$pagenow}" );
330330

331331
/*
332332
* The following hooks are fired to ensure backward compatibility.

wp-admin/comment.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@
4848

4949
get_current_screen()->set_help_sidebar(
5050
'<p><strong>' . __( 'For more information:' ) . '</strong></p>' .
51-
'<p>' . __( '<a href="https://codex.wordpress.org/Administration_Screens#Comments" target="_blank">Documentation on Comments</a>' ) . '</p>' .
52-
'<p>' . __( '<a href="https://wordpress.org/support/" target="_blank">Support Forums</a>' ) . '</p>'
51+
'<p>' . __( '<a href="https://codex.wordpress.org/Administration_Screens#Comments">Documentation on Comments</a>' ) . '</p>' .
52+
'<p>' . __( '<a href="https://wordpress.org/support/">Support Forums</a>' ) . '</p>'
5353
);
5454

5555
wp_enqueue_script('comment');
@@ -213,7 +213,7 @@
213213
<th scope="row"><?php /* translators: field name in comment form */ _ex('Comment', 'noun'); ?></th>
214214
<td class="comment-content">
215215
<?php comment_text( $comment ); ?>
216-
<p class="edit-comment"><a href="<?php echo admin_url( "comment.php?action=editcomment&amp;c={$comment->comment_ID}" ); ?>"><?php esc_attr_e( 'Edit' ); ?></a></p>
216+
<p class="edit-comment"><a href="<?php echo admin_url( "comment.php?action=editcomment&amp;c={$comment->comment_ID}" ); ?>"><?php esc_html_e( 'Edit' ); ?></a></p>
217217
</td>
218218
</tr>
219219
</table>
@@ -222,7 +222,7 @@
222222

223223
<p>
224224
<?php submit_button( $button, 'primary', 'submit', false ); ?>
225-
<a href="<?php echo admin_url('edit-comments.php'); ?>" class="button-cancel"><?php esc_attr_e( 'Cancel' ); ?></a>
225+
<a href="<?php echo admin_url('edit-comments.php'); ?>" class="button-cancel"><?php esc_html_e( 'Cancel' ); ?></a>
226226
</p>
227227

228228
<?php wp_nonce_field( $nonce_action ); ?>

wp-admin/credits.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@
1212

1313
$title = __( 'Credits' );
1414

15-
list( $display_version ) = explode( '-', $wp_version );
15+
list( $display_version ) = explode( '-', get_bloginfo( 'version' ) );
1616

1717
include( ABSPATH . 'wp-admin/admin-header.php' );
1818
?>
1919
<div class="wrap about-wrap">
2020

2121
<h1><?php printf( __( 'Welcome to WordPress %s' ), $display_version ); ?></h1>
2222

23-
<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>
23+
<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>
2424

2525
<div class="wp-badge"><?php printf( __( 'Version %s' ), $display_version ); ?></div>
2626

wp-admin/css/about-rtl.css

+24-22
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
max-width: 100%;
4141
height: auto;
4242
vertical-align: middle;
43+
border: 1px solid rgba(0, 0, 0, 0.1);
4344
}
4445

4546
.about-wrap .jetpack-video-wrapper {
@@ -93,7 +94,7 @@
9394
}
9495

9596
.about-wrap .feature-section p {
96-
max-width: 38em;
97+
max-width: 55em;
9798
margin-right: auto;
9899
margin-left: auto;
99100
}
@@ -108,23 +109,29 @@
108109
}
109110

110111
.about-wrap h2 {
111-
margin: 50px 0 1em;
112-
font-size: 1.8em;
112+
margin: 40px 0 .6em;
113+
font-size: 2.7em;
113114
line-height: 1.3;
114115
font-weight: 300;
115116
text-align: center;
116117
}
117118

118119
.about-wrap h3 {
119120
margin: 1.25em 0 .6em;
120-
font-size: 1.25em;
121+
font-size: 1.4em;
121122
line-height: 1.5;
122123
}
123124

124125
.about-wrap h4 {
125126
color: #23282d;
126127
}
127128

129+
.about-wrap .changelog h2 {
130+
font-size: 1.4em;
131+
font-weight: 600;
132+
text-align: right;
133+
}
134+
128135
.about-wrap .changelog h3 {
129136
margin: 1.33em 0;
130137
font-size: 1em;
@@ -193,11 +200,6 @@
193200
overflow: hidden;
194201
}
195202

196-
.about-wrap .under-the-hood:nth-of-type(2n),
197-
.about-wrap .under-the-hood:nth-of-type(3n) {
198-
margin-top: 3em;
199-
}
200-
201203
.about-wrap .feature-video .mejs-controls {
202204
display: none !important;
203205
}
@@ -227,19 +229,6 @@
227229

228230
/* 2.1 - Typography */
229231

230-
.about-wrap .headline-feature h2 {
231-
margin: 30px 0 30px;
232-
font-size: 2.2em;
233-
font-weight: 300;
234-
line-height: 1.3;
235-
text-align: center;
236-
}
237-
238-
.about-wrap .headline-feature h3 {
239-
margin-top: 0;
240-
text-align: right;
241-
}
242-
243232
.about-wrap .feature-section.two-col h3 {
244233
margin-top: 0;
245234
}
@@ -253,6 +242,11 @@
253242
margin-top: 0.6em;
254243
}
255244

245+
.about-wrap .lead-description {
246+
font-size: 1.5em;
247+
text-align: center;
248+
}
249+
256250
.about-wrap .two-col-text {
257251
-webkit-column-count: 2;
258252
-moz-column-count: 2;
@@ -300,6 +294,10 @@
300294
padding: 0 0 40px;
301295
}
302296

297+
.about-wrap .feature-section.no-heading {
298+
padding-top: 35px;
299+
}
300+
303301
.about-wrap .headline-feature {
304302
margin: 0 auto;
305303
max-width: 80%;
@@ -309,6 +307,10 @@
309307
overflow: hidden;
310308
}
311309

310+
.about-wrap .feature-section img {
311+
margin-bottom: 1em;
312+
}
313+
312314
.about-wrap .embed-container {
313315
text-align: center;
314316
}

0 commit comments

Comments
 (0)