Skip to content

Commit 878965e

Browse files
Merge branch 'trunk' into add/webp-uploads
2 parents 3b25021 + 7932ebc commit 878965e

File tree

3 files changed

+23
-8
lines changed

3 files changed

+23
-8
lines changed

src/wp-admin/includes/misc.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1190,6 +1190,7 @@ function wp_refresh_post_lock( $response, $data, $screen_id ) {
11901190

11911191
if ( $user ) {
11921192
$error = array(
1193+
'name' => $user->display_name,
11931194
/* translators: %s: User's display name. */
11941195
'text' => sprintf( __( '%s has taken over and is currently editing.' ), $user->display_name ),
11951196
);

src/wp-admin/includes/update.php

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,8 @@ function find_core_update( $version, $locale ) {
220220
}
221221

222222
/**
223+
* Returns core update footer message.
224+
*
223225
* @since 2.3.0
224226
*
225227
* @param string $msg
@@ -275,6 +277,8 @@ function core_update_footer( $msg = '' ) {
275277
}
276278

277279
/**
280+
* Returns core update notification message.
281+
*
278282
* @since 2.3.0
279283
*
280284
* @global string $pagenow The filename of the current screen.
@@ -370,6 +374,8 @@ function update_right_now_message() {
370374
}
371375

372376
/**
377+
* Retrieves plugins with updates available.
378+
*
373379
* @since 2.9.0
374380
*
375381
* @return array
@@ -389,6 +395,8 @@ function get_plugin_updates() {
389395
}
390396

391397
/**
398+
* Adds a callback to display update information for plugins with updates available.
399+
*
392400
* @since 2.9.0
393401
*/
394402
function wp_plugin_update_rows() {
@@ -585,6 +593,8 @@ function wp_plugin_update_row( $file, $plugin_data ) {
585593
}
586594

587595
/**
596+
* Retrieves themes with updates available.
597+
*
588598
* @since 2.9.0
589599
*
590600
* @return array
@@ -606,6 +616,8 @@ function get_theme_updates() {
606616
}
607617

608618
/**
619+
* Adds a callback to display update information for themes with updates available.
620+
*
609621
* @since 3.1.0
610622
*/
611623
function wp_theme_update_rows() {
@@ -801,6 +813,8 @@ function wp_theme_update_row( $theme_key, $theme ) {
801813
}
802814

803815
/**
816+
* Displays maintenance nag HTML message.
817+
*
804818
* @since 2.7.0
805819
*
806820
* @global int $upgrading
@@ -849,6 +863,8 @@ function maintenance_nag() {
849863
/**
850864
* Prints the JavaScript templates for update admin notices.
851865
*
866+
* @since 4.6.0
867+
*
852868
* Template takes one argument with four values:
853869
*
854870
* param {object} data {
@@ -859,8 +875,6 @@ function maintenance_nag() {
859875
* @type string message The notice's message.
860876
* @type string type The type of update the notice is for. Either 'plugin' or 'theme'.
861877
* }
862-
*
863-
* @since 4.6.0
864878
*/
865879
function wp_print_admin_notice_templates() {
866880
?>
@@ -930,6 +944,8 @@ function wp_print_admin_notice_templates() {
930944
/**
931945
* Prints the JavaScript templates for update and deletion rows in list tables.
932946
*
947+
* @since 4.6.0
948+
*
933949
* The update template takes one argument with four values:
934950
*
935951
* param {object} data {
@@ -951,8 +967,6 @@ function wp_print_admin_notice_templates() {
951967
* @type string name Plugin name.
952968
* @type string colspan The number of table columns this row spans.
953969
* }
954-
*
955-
* @since 4.6.0
956970
*/
957971
function wp_print_update_row_templates() {
958972
?>

src/wp-includes/l10n.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,7 @@ function _n( $single, $plural, $number, $domain = 'default' ) {
482482
* @param string $translation Translated text.
483483
* @param string $single The text to be used if the number is singular.
484484
* @param string $plural The text to be used if the number is plural.
485-
* @param string $number The number to compare against to use either the singular or plural form.
485+
* @param int $number The number to compare against to use either the singular or plural form.
486486
* @param string $domain Text domain. Unique identifier for retrieving translated strings.
487487
*/
488488
$translation = apply_filters( 'ngettext', $translation, $single, $plural, $number, $domain );
@@ -497,7 +497,7 @@ function _n( $single, $plural, $number, $domain = 'default' ) {
497497
* @param string $translation Translated text.
498498
* @param string $single The text to be used if the number is singular.
499499
* @param string $plural The text to be used if the number is plural.
500-
* @param string $number The number to compare against to use either the singular or plural form.
500+
* @param int $number The number to compare against to use either the singular or plural form.
501501
* @param string $domain Text domain. Unique identifier for retrieving translated strings.
502502
*/
503503
$translation = apply_filters( "ngettext_{$domain}", $translation, $single, $plural, $number, $domain );
@@ -541,7 +541,7 @@ function _nx( $single, $plural, $number, $context, $domain = 'default' ) {
541541
* @param string $translation Translated text.
542542
* @param string $single The text to be used if the number is singular.
543543
* @param string $plural The text to be used if the number is plural.
544-
* @param string $number The number to compare against to use either the singular or plural form.
544+
* @param int $number The number to compare against to use either the singular or plural form.
545545
* @param string $context Context information for the translators.
546546
* @param string $domain Text domain. Unique identifier for retrieving translated strings.
547547
*/
@@ -557,7 +557,7 @@ function _nx( $single, $plural, $number, $context, $domain = 'default' ) {
557557
* @param string $translation Translated text.
558558
* @param string $single The text to be used if the number is singular.
559559
* @param string $plural The text to be used if the number is plural.
560-
* @param string $number The number to compare against to use either the singular or plural form.
560+
* @param int $number The number to compare against to use either the singular or plural form.
561561
* @param string $context Context information for the translators.
562562
* @param string $domain Text domain. Unique identifier for retrieving translated strings.
563563
*/

0 commit comments

Comments
 (0)