diff --git a/wp-activate.php b/wp-activate.php index df82ae0b09..7107352d53 100644 --- a/wp-activate.php +++ b/wp-activate.php @@ -144,7 +144,7 @@ get_header( 'wp-activate' ); echo '
'; if ( $signup->domain . $signup->path == '' ) { printf( - /* translators: 1: login URL, 2: username, 3: user email, 4: lost password URL */ + /* translators: 1: Login URL, 2: Username, 3: User email address, 4: Lost password URL. */ __( 'Your account has been activated. You may now log in to the site using your chosen username of “%2$s”. Please check your email inbox at %3$s for your password and login instructions. If you do not receive an email, please check your junk or spam folder. If you still do not receive an email within an hour, you can reset your password.' ), network_site_url( 'wp-login.php', 'login' ), $signup->user_login, @@ -153,7 +153,7 @@ get_header( 'wp-activate' ); ); } else { printf( - /* translators: 1: site URL, 2: username, 3: user email, 4: lost password URL */ + /* translators: 1: Site URL, 2: Username, 3: User email address, 4: Lost password URL. */ __( 'Your site at %1$s is active. You may now log in to your site using your chosen username of “%2$s”. Please check your email inbox at %3$s for your password and login instructions. If you do not receive an email, please check your junk or spam folder. If you still do not receive an email within an hour, you can reset your password.' ), sprintf( '%1$s', $signup->domain ), $signup->user_login, @@ -188,14 +188,14 @@ get_header( 'wp-activate' ); ?>
View your site or Log in' ), $url, esc_url( $login_url ) ); ?>
Log in or go back to the homepage.' ), network_site_url( 'wp-login.php', 'login' ), network_home_url() ); ?>
diff --git a/wp-admin/about.php b/wp-admin/about.php index 2731a54a1c..f5d86a9892 100644 --- a/wp-admin/about.php +++ b/wp-admin/about.php @@ -20,7 +20,7 @@ include( ABSPATH . 'wp-admin/admin-header.php' );' . sprintf( - /* translators: %s: URL to Press This bookmarklet */ + /* translators: %s: URL to Press This bookmarklet. */ __( 'You can also create posts with the Press This bookmarklet.' ), 'tools.php' ) . '
' . @@ -370,7 +370,7 @@ if ( 'post' == $post_type ) { if ( current_theme_supports( 'post-thumbnails' ) && post_type_supports( 'post', 'thumbnail' ) ) { $publish_box .= '' . sprintf( - /* translators: %s: URL to Writing Settings screen */ + /* translators: %s: URL to Writing Settings screen. */ __( 'You can use categories to define sections of your site and group related posts. The default category is “Uncategorized” until you change it in your writing settings.' ), 'options-writing.php' ) . '
'; @@ -335,7 +335,7 @@ if ( is_plugin_active( 'wpcat2tag-importer/wpcat2tag-importer.php' ) ) { ' . __( 'Search results for “%s”' ) . '', esc_html( wp_unslash( $_REQUEST['s'] ) ) ); } ?> @@ -591,7 +591,7 @@ if ( $can_edit_terms ) {' . apply_filters( 'the_category', get_cat_name( get_option( 'default_category' ) ), '', '' ) . '' @@ -602,7 +602,7 @@ if ( $can_edit_terms ) {
category to tag converter.' ), esc_url( $import_link ) ); @@ -615,7 +615,7 @@ if ( $can_edit_terms ) {
tag to category converter.' ), esc_url( $import_link ) ); diff --git a/wp-admin/edit.php b/wp-admin/edit.php index c843e92c4c..a8c2265d20 100644 --- a/wp-admin/edit.php +++ b/wp-admin/edit.php @@ -314,42 +314,42 @@ $bulk_counts = array( $bulk_messages = array(); $bulk_messages['post'] = array( - /* translators: %s: number of posts */ + /* translators: %s: Number of posts. */ 'updated' => _n( '%s post updated.', '%s posts updated.', $bulk_counts['updated'] ), 'locked' => ( 1 == $bulk_counts['locked'] ) ? __( '1 post not updated, somebody is editing it.' ) : - /* translators: %s: number of posts */ + /* translators: %s: Number of posts. */ _n( '%s post not updated, somebody is editing it.', '%s posts not updated, somebody is editing them.', $bulk_counts['locked'] ), - /* translators: %s: number of posts */ + /* translators: %s: Number of posts. */ 'deleted' => _n( '%s post permanently deleted.', '%s posts permanently deleted.', $bulk_counts['deleted'] ), - /* translators: %s: number of posts */ + /* translators: %s: Number of posts. */ 'trashed' => _n( '%s post moved to the Trash.', '%s posts moved to the Trash.', $bulk_counts['trashed'] ), - /* translators: %s: number of posts */ + /* translators: %s: Number of posts. */ 'untrashed' => _n( '%s post restored from the Trash.', '%s posts restored from the Trash.', $bulk_counts['untrashed'] ), ); $bulk_messages['page'] = array( - /* translators: %s: number of pages */ + /* translators: %s: Number of pages. */ 'updated' => _n( '%s page updated.', '%s pages updated.', $bulk_counts['updated'] ), 'locked' => ( 1 == $bulk_counts['locked'] ) ? __( '1 page not updated, somebody is editing it.' ) : - /* translators: %s: number of pages */ + /* translators: %s: Number of pages. */ _n( '%s page not updated, somebody is editing it.', '%s pages not updated, somebody is editing them.', $bulk_counts['locked'] ), - /* translators: %s: number of pages */ + /* translators: %s: Number of pages. */ 'deleted' => _n( '%s page permanently deleted.', '%s pages permanently deleted.', $bulk_counts['deleted'] ), - /* translators: %s: number of pages */ + /* translators: %s: Number of pages. */ 'trashed' => _n( '%s page moved to the Trash.', '%s pages moved to the Trash.', $bulk_counts['trashed'] ), - /* translators: %s: number of pages */ + /* translators: %s: Number of pages. */ 'untrashed' => _n( '%s page restored from the Trash.', '%s pages restored from the Trash.', $bulk_counts['untrashed'] ), ); $bulk_messages['wp_block'] = array( - /* translators: %s: number of blocks */ + /* translators: %s: Number of blocks. */ 'updated' => _n( '%s block updated.', '%s blocks updated.', $bulk_counts['updated'] ), 'locked' => ( 1 == $bulk_counts['locked'] ) ? __( '1 block not updated, somebody is editing it.' ) : - /* translators: %s: number of blocks */ + /* translators: %s: Number of blocks. */ _n( '%s block not updated, somebody is editing it.', '%s blocks not updated, somebody is editing them.', $bulk_counts['locked'] ), - /* translators: %s: number of blocks */ + /* translators: %s: Number of blocks. */ 'deleted' => _n( '%s block permanently deleted.', '%s blocks permanently deleted.', $bulk_counts['deleted'] ), - /* translators: %s: number of blocks */ + /* translators: %s: Number of blocks. */ 'trashed' => _n( '%s block moved to the Trash.', '%s blocks moved to the Trash.', $bulk_counts['trashed'] ), - /* translators: %s: number of blocks */ + /* translators: %s: Number of blocks. */ 'untrashed' => _n( '%s block restored from the Trash.', '%s blocks restored from the Trash.', $bulk_counts['untrashed'] ), ); @@ -382,7 +382,7 @@ if ( current_user_can( $post_type_object->cap->create_posts ) ) { } if ( isset( $_REQUEST['s'] ) && strlen( $_REQUEST['s'] ) ) { - /* translators: %s: search keywords */ + /* translators: %s: Search query. */ printf( ' ' . __( 'Search results for “%s”' ) . '', get_search_query() ); } ?> diff --git a/wp-admin/freedoms.php b/wp-admin/freedoms.php index 9b59d820df..fe8f1868f9 100644 --- a/wp-admin/freedoms.php +++ b/wp-admin/freedoms.php @@ -27,7 +27,7 @@ include( ABSPATH . 'wp-admin/admin-header.php' );
- ' . esc_html( $_GET['invalid'] ) . '' ); - ?> + ' . esc_html( $_GET['invalid'] ) . '' ); + ?>
' . sprintf( - /* translators: %s: URL to Add Plugins screen */ + /* translators: %s: URL to Add Plugins screen. */ __( 'If the importer you need is not listed, search the plugin directory to see if an importer is available.' ), esc_url( network_admin_url( 'plugin-install.php?tab=search&type=tag&s=importer' ) ) ) . '
'; diff --git a/wp-admin/includes/ajax-actions.php b/wp-admin/includes/ajax-actions.php index c1f5c8f1fc..28db878ef5 100644 --- a/wp-admin/includes/ajax-actions.php +++ b/wp-admin/includes/ajax-actions.php @@ -314,7 +314,7 @@ function wp_ajax_autocomplete_user() { foreach ( $users as $user ) { $return[] = array( - /* translators: 1: user login, 2: user email address */ + /* translators: 1: User login, 2: User email address. */ 'label' => sprintf( _x( '%1$s (%2$s)', 'user autocomplete result' ), $user->user_login, $user->user_email ), 'value' => $user->$field, ); @@ -454,12 +454,12 @@ function _wp_ajax_delete_comment_response( $comment_id, $delta = -1 ) { 'time' => $time, 'in_moderation' => $counts->moderated, 'i18n_comments_text' => sprintf( - /* translators: %s: number of comments */ + /* translators: %s: Number of comments. */ _n( '%s Comment', '%s Comments', $counts->approved ), number_format_i18n( $counts->approved ) ), 'i18n_moderation_text' => sprintf( - /* translators: %s: number of comments */ + /* translators: %s: Number of comments. */ _n( '%s Comment in moderation', '%s Comments in moderation', $counts->moderated ), number_format_i18n( $counts->moderated ) ), @@ -518,7 +518,7 @@ function _wp_ajax_delete_comment_response( $comment_id, $delta = -1 ) { 'supplemental' => array( 'status' => $comment ? $comment->comment_approved : '', 'postId' => $comment ? $comment->comment_post_ID : '', - /* translators: %s: number of comments */ + /* translators: %s: Number of comments. */ 'total_items_i18n' => sprintf( _n( '%s item', '%s items', $total ), number_format_i18n( $total ) ), 'total_pages' => ceil( $total / $per_page ), 'total_pages_i18n' => number_format_i18n( ceil( $total / $per_page ) ), @@ -526,7 +526,7 @@ function _wp_ajax_delete_comment_response( $comment_id, $delta = -1 ) { 'time' => $time, 'in_moderation' => $counts->moderated, 'i18n_moderation_text' => sprintf( - /* translators: %s: number of comments */ + /* translators: %s: Number of comments. */ _n( '%s Comment in moderation', '%s Comments in moderation', $counts->moderated ), number_format_i18n( $counts->moderated ) ), @@ -915,7 +915,7 @@ function wp_ajax_dim_comment() { 'what' => 'comment', 'id' => new WP_Error( 'invalid_comment', - /* translators: %d: comment ID */ + /* translators: %d: Comment ID. */ sprintf( __( 'Comment %d does not exist' ), $id ) ), ) @@ -1304,12 +1304,12 @@ function wp_ajax_replyto_comment( $action ) { $response['supplemental'] = array( 'in_moderation' => $counts->moderated, 'i18n_comments_text' => sprintf( - /* translators: %s: number of comments */ + /* translators: %s: Number of comments. */ _n( '%s Comment', '%s Comments', $counts->approved ), number_format_i18n( $counts->approved ) ), 'i18n_moderation_text' => sprintf( - /* translators: %s: number of comments */ + /* translators: %s: Number of comments. */ _n( '%s Comment in moderation', '%s Comments in moderation', $counts->moderated ), number_format_i18n( $counts->moderated ) ), @@ -1486,7 +1486,7 @@ function wp_ajax_add_meta() { $post_data['post_type'] = $post->post_type; $post_data['post_status'] = 'draft'; $now = time(); - /* translators: 1: Post creation date, 2: Post creation time */ + /* translators: 1: Post creation date, 2: Post creation time. */ $post_data['post_title'] = sprintf( __( 'Draft created on %1$s at %2$s' ), gmdate( __( 'F j, Y' ), $now ), gmdate( __( 'g:i a' ), $now ) ); $pid = edit_post( $post_data ); @@ -1612,7 +1612,7 @@ function wp_ajax_add_user( $action ) { 'data' => $wp_list_table->single_row( $user_object, '', $role ), 'supplemental' => array( 'show-link' => sprintf( - /* translators: %s: the new user */ + /* translators: %s: The new user. */ __( 'User %s added' ), '' . $user_object->user_login . '' ), @@ -1917,11 +1917,11 @@ function wp_ajax_inline_save() { $last_user = get_userdata( $last ); $last_user_name = $last_user ? $last_user->display_name : __( 'Someone' ); - /* translators: %s: user's display name */ + /* translators: %s: User's display name. */ $msg_template = __( 'Saving is disabled: %s is currently editing this post.' ); if ( $_POST['post_type'] == 'page' ) { - /* translators: %s: user's display name */ + /* translators: %s: User's display name. */ $msg_template = __( 'Saving is disabled: %s is currently editing this page.' ); } @@ -2111,7 +2111,7 @@ function wp_ajax_find_posts() { if ( '0000-00-00 00:00:00' == $post->post_date ) { $time = ''; } else { - /* translators: date format in table columns, see https://secure.php.net/date */ + /* translators: Date format in table columns, see https://secure.php.net/date */ $time = mysql2date( __( 'Y/m/d' ), $post->post_date ); } @@ -2630,10 +2630,10 @@ function wp_ajax_wp_fullscreen_save_post() { $last_id = get_post_meta( $post_id, '_edit_last', true ); if ( $last_id ) { $last_user = get_userdata( $last_id ); - /* translators: 1: user's display name, 2: date of last edit, 3: time of last edit. */ + /* translators: 1: User's display name, 2: Date of last edit, 3: Time of last edit. */ $last_edited = sprintf( __( 'Last edited by %1$s on %2$s at %3$s' ), esc_html( $last_user->display_name ), $last_date, $last_time ); } else { - /* translators: 1: date of last edit, 2: time of last edit. */ + /* translators: 1: Date of last edit, 2: Time of last edit. */ $last_edited = sprintf( __( 'Last edited on %1$s at %2$s' ), $last_date, $last_time ); } @@ -3484,7 +3484,7 @@ function wp_ajax_parse_embed() { wp_send_json_error( array( 'type' => 'not-embeddable', - /* translators: %s: URL that could not be embedded */ + /* translators: %s: URL that could not be embedded. */ 'message' => sprintf( __( '%s failed to embed.' ), '' . esc_html( $url ) . '
' ),
)
);
@@ -4228,7 +4228,7 @@ function wp_ajax_update_plugin() {
$status['pluginName'] = $plugin_data['Name'];
if ( $plugin_data['Version'] ) {
- /* translators: %s: Plugin version */
+ /* translators: %s: Plugin version. */
$status['oldVersion'] = sprintf( __( 'Version %s' ), $plugin_data['Version'] );
}
@@ -4271,7 +4271,7 @@ function wp_ajax_update_plugin() {
$plugin_data = reset( $plugin_data );
if ( $plugin_data['Version'] ) {
- /* translators: %s: Plugin version */
+ /* translators: %s: Plugin version. */
$status['newVersion'] = sprintf( __( 'Version %s' ), $plugin_data['Version'] );
}
wp_send_json_success( $status );
@@ -4591,13 +4591,13 @@ function wp_ajax_wp_privacy_export_personal_data() {
if ( ! is_array( $exporter ) ) {
wp_send_json_error(
- /* translators: %s: exporter array index */
+ /* translators: %s: Exporter array index. */
sprintf( __( 'Expected an array describing the exporter at index %s.' ), $exporter_key )
);
}
if ( ! array_key_exists( 'exporter_friendly_name', $exporter ) ) {
wp_send_json_error(
- /* translators: %s: exporter array index */
+ /* translators: %s: Exporter array index. */
sprintf( __( 'Exporter array at index %s does not include a friendly name.' ), $exporter_key )
);
}
@@ -4606,13 +4606,13 @@ function wp_ajax_wp_privacy_export_personal_data() {
if ( ! array_key_exists( 'callback', $exporter ) ) {
wp_send_json_error(
- /* translators: %s: exporter friendly name */
+ /* translators: %s: Exporter friendly name. */
sprintf( __( 'Exporter does not include a callback: %s.' ), esc_html( $exporter_friendly_name ) )
);
}
if ( ! is_callable( $exporter['callback'] ) ) {
wp_send_json_error(
- /* translators: %s: exporter friendly name */
+ /* translators: %s: Exporter friendly name. */
sprintf( __( 'Exporter callback is not a valid callback: %s.' ), esc_html( $exporter_friendly_name ) )
);
}
@@ -4626,25 +4626,25 @@ function wp_ajax_wp_privacy_export_personal_data() {
if ( ! is_array( $response ) ) {
wp_send_json_error(
- /* translators: %s: exporter friendly name */
+ /* translators: %s: Exporter friendly name. */
sprintf( __( 'Expected response as an array from exporter: %s.' ), esc_html( $exporter_friendly_name ) )
);
}
if ( ! array_key_exists( 'data', $response ) ) {
wp_send_json_error(
- /* translators: %s: exporter friendly name */
+ /* translators: %s: Exporter friendly name. */
sprintf( __( 'Expected data in response array from exporter: %s.' ), esc_html( $exporter_friendly_name ) )
);
}
if ( ! is_array( $response['data'] ) ) {
wp_send_json_error(
- /* translators: %s: exporter friendly name */
+ /* translators: %s: Exporter friendly name. */
sprintf( __( 'Expected data array in response array from exporter: %s.' ), esc_html( $exporter_friendly_name ) )
);
}
if ( ! array_key_exists( 'done', $response ) ) {
wp_send_json_error(
- /* translators: %s: exporter friendly name */
+ /* translators: %s: Exporter friendly name. */
sprintf( __( 'Expected done (boolean) in response array from exporter: %s.' ), esc_html( $exporter_friendly_name ) )
);
}
@@ -4773,12 +4773,12 @@ function wp_ajax_wp_privacy_erase_personal_data() {
$eraser = $erasers[ $eraser_key ];
if ( ! is_array( $eraser ) ) {
- /* translators: %d: eraser array index */
+ /* translators: %d: Eraser array index. */
wp_send_json_error( sprintf( __( 'Expected an array describing the eraser at index %d.' ), $eraser_index ) );
}
if ( ! array_key_exists( 'eraser_friendly_name', $eraser ) ) {
- /* translators: %d: eraser array index */
+ /* translators: %d: Eraser array index. */
wp_send_json_error( sprintf( __( 'Eraser array at index %d does not include a friendly name.' ), $eraser_index ) );
}
@@ -4787,7 +4787,7 @@ function wp_ajax_wp_privacy_erase_personal_data() {
if ( ! array_key_exists( 'callback', $eraser ) ) {
wp_send_json_error(
sprintf(
- /* translators: %s: eraser friendly name */
+ /* translators: %s: Eraser friendly name. */
__( 'Eraser does not include a callback: %s.' ),
esc_html( $eraser_friendly_name )
)
@@ -4797,7 +4797,7 @@ function wp_ajax_wp_privacy_erase_personal_data() {
if ( ! is_callable( $eraser['callback'] ) ) {
wp_send_json_error(
sprintf(
- /* translators: %s: eraser friendly name */
+ /* translators: %s: Eraser friendly name. */
__( 'Eraser callback is not valid: %s.' ),
esc_html( $eraser_friendly_name )
)
@@ -4814,7 +4814,7 @@ function wp_ajax_wp_privacy_erase_personal_data() {
if ( ! is_array( $response ) ) {
wp_send_json_error(
sprintf(
- /* translators: 1: eraser friendly name, 2: eraser array index */
+ /* translators: 1: Eraser friendly name, 2: Eraser array index. */
__( 'Did not receive array from %1$s eraser (index %2$d).' ),
esc_html( $eraser_friendly_name ),
$eraser_index
@@ -4825,7 +4825,7 @@ function wp_ajax_wp_privacy_erase_personal_data() {
if ( ! array_key_exists( 'items_removed', $response ) ) {
wp_send_json_error(
sprintf(
- /* translators: 1: eraser friendly name, 2: eraser array index */
+ /* translators: 1: Eraser friendly name, 2: Eraser array index. */
__( 'Expected items_removed key in response array from %1$s eraser (index %2$d).' ),
esc_html( $eraser_friendly_name ),
$eraser_index
@@ -4836,7 +4836,7 @@ function wp_ajax_wp_privacy_erase_personal_data() {
if ( ! array_key_exists( 'items_retained', $response ) ) {
wp_send_json_error(
sprintf(
- /* translators: 1: eraser friendly name, 2: eraser array index */
+ /* translators: 1: Eraser friendly name, 2: Eraser array index. */
__( 'Expected items_retained key in response array from %1$s eraser (index %2$d).' ),
esc_html( $eraser_friendly_name ),
$eraser_index
@@ -4847,7 +4847,7 @@ function wp_ajax_wp_privacy_erase_personal_data() {
if ( ! array_key_exists( 'messages', $response ) ) {
wp_send_json_error(
sprintf(
- /* translators: 1: eraser friendly name, 2: eraser array index */
+ /* translators: 1: Eraser friendly name, 2: Eraser array index. */
__( 'Expected messages key in response array from %1$s eraser (index %2$d).' ),
esc_html( $eraser_friendly_name ),
$eraser_index
@@ -4858,7 +4858,7 @@ function wp_ajax_wp_privacy_erase_personal_data() {
if ( ! is_array( $response['messages'] ) ) {
wp_send_json_error(
sprintf(
- /* translators: 1: eraser friendly name, 2: eraser array index */
+ /* translators: 1: Eraser friendly name, 2: Eraser array index. */
__( 'Expected messages key to reference an array in response array from %1$s eraser (index %2$d).' ),
esc_html( $eraser_friendly_name ),
$eraser_index
@@ -4869,7 +4869,7 @@ function wp_ajax_wp_privacy_erase_personal_data() {
if ( ! array_key_exists( 'done', $response ) ) {
wp_send_json_error(
sprintf(
- /* translators: 1: eraser friendly name, 2: eraser array index */
+ /* translators: 1: Eraser friendly name, 2: Eraser array index. */
__( 'Expected done flag in response array from %1$s eraser (index %2$d).' ),
esc_html( $eraser_friendly_name ),
$eraser_index
diff --git a/wp-admin/includes/bookmark.php b/wp-admin/includes/bookmark.php
index 73102b96a1..6168a63529 100644
--- a/wp-admin/includes/bookmark.php
+++ b/wp-admin/includes/bookmark.php
@@ -319,7 +319,7 @@ function wp_link_manager_disabled_message() {
if ( $really_can_manage_links && current_user_can( 'install_plugins' ) ) {
$link = network_admin_url( 'plugin-install.php?tab=search&s=Link+Manager' );
- /* translators: %s: URL to install the Link Manager plugin */
+ /* translators: %s: URL to install the Link Manager plugin. */
wp_die( sprintf( __( 'If you are looking to use the link manager, please install the Link Manager plugin.' ), $link ) );
}
diff --git a/wp-admin/includes/class-bulk-plugin-upgrader-skin.php b/wp-admin/includes/class-bulk-plugin-upgrader-skin.php
index 62b877918a..308cacf553 100644
--- a/wp-admin/includes/class-bulk-plugin-upgrader-skin.php
+++ b/wp-admin/includes/class-bulk-plugin-upgrader-skin.php
@@ -20,7 +20,7 @@ class Bulk_Plugin_Upgrader_Skin extends Bulk_Upgrader_Skin {
public function add_strings() {
parent::add_strings();
- /* translators: 1: plugin name, 2: number of the plugin, 3: total number of plugins being updated */
+ /* translators: 1: Plugin name, 2: Number of the plugin, 3: Total number of plugins being updated. */
$this->upgrader->strings['skin_before_update_header'] = __( 'Updating Plugin %1$s (%2$d/%3$d)' );
}
diff --git a/wp-admin/includes/class-bulk-theme-upgrader-skin.php b/wp-admin/includes/class-bulk-theme-upgrader-skin.php
index 687a921529..d3f0c914ea 100644
--- a/wp-admin/includes/class-bulk-theme-upgrader-skin.php
+++ b/wp-admin/includes/class-bulk-theme-upgrader-skin.php
@@ -20,7 +20,7 @@ class Bulk_Theme_Upgrader_Skin extends Bulk_Upgrader_Skin {
public function add_strings() {
parent::add_strings();
- /* translators: 1: theme name, 2: number of the theme, 3: total number of themes being updated */
+ /* translators: 1: Theme name, 2: Number of the theme, 3: Total number of themes being updated. */
$this->upgrader->strings['skin_before_update_header'] = __( 'Updating Theme %1$s (%2$d/%3$d)' );
}
diff --git a/wp-admin/includes/class-bulk-upgrader-skin.php b/wp-admin/includes/class-bulk-upgrader-skin.php
index c1454e62f1..dcfa30b136 100644
--- a/wp-admin/includes/class-bulk-upgrader-skin.php
+++ b/wp-admin/includes/class-bulk-upgrader-skin.php
@@ -39,11 +39,11 @@ class Bulk_Upgrader_Skin extends WP_Upgrader_Skin {
*/
public function add_strings() {
$this->upgrader->strings['skin_upgrade_start'] = __( 'The update process is starting. This process may take a while on some hosts, so please be patient.' );
- /* translators: 1: Title of an update, 2: Error message */
+ /* translators: 1: Title of an update, 2: Error message. */
$this->upgrader->strings['skin_update_failed_error'] = __( 'An error occurred while updating %1$s: %2$s' );
- /* translators: %s: Title of an update */
+ /* translators: %s: Title of an update. */
$this->upgrader->strings['skin_update_failed'] = __( 'The update of %s failed.' );
- /* translators: %s: Title of an update */
+ /* translators: %s: Title of an update. */
$this->upgrader->strings['skin_update_successful'] = __( '%s updated successfully.' );
$this->upgrader->strings['skin_upgrade_end'] = __( 'All updates have been completed.' );
}
diff --git a/wp-admin/includes/class-core-upgrader.php b/wp-admin/includes/class-core-upgrader.php
index 0985cf2e81..ad94983074 100644
--- a/wp-admin/includes/class-core-upgrader.php
+++ b/wp-admin/includes/class-core-upgrader.php
@@ -29,7 +29,7 @@ class Core_Upgrader extends WP_Upgrader {
$this->strings['up_to_date'] = __( 'WordPress is at the latest version.' );
$this->strings['locked'] = __( 'Another update is currently in progress.' );
$this->strings['no_package'] = __( 'Update package not available.' );
- /* translators: %s: package URL */
+ /* translators: %s: Package URL. */
$this->strings['downloading_package'] = sprintf( __( 'Downloading update from %s…' ), '%s' );
$this->strings['unpack_package'] = __( 'Unpacking the update…' );
$this->strings['copy_failed'] = __( 'Could not copy files.' );
diff --git a/wp-admin/includes/class-custom-background.php b/wp-admin/includes/class-custom-background.php
index 16ba6c0f33..2a8e1d9f2b 100644
--- a/wp-admin/includes/class-custom-background.php
+++ b/wp-admin/includes/class-custom-background.php
@@ -230,7 +230,7 @@ class Custom_Background {
Customizer.' ), admin_url( 'customize.php?autofocus[control]=background_image' ) ); @@ -243,7 +243,7 @@ class Custom_Background {
Visit your site to see how it looks.' ), home_url( '/' ) ); ?>
diff --git a/wp-admin/includes/class-custom-image-header.php b/wp-admin/includes/class-custom-image-header.php index faf9efc13c..12d307d6d4 100644 --- a/wp-admin/includes/class-custom-image-header.php +++ b/wp-admin/includes/class-custom-image-header.php @@ -119,7 +119,7 @@ class Custom_Image_Header { 'title' => __( 'Header Text' ), 'content' => '' . sprintf( - /* translators: %s: URL to General Settings screen */ + /* translators: %s: URL to General Settings screen. */ __( 'For most themes, the header text is your Site Title and Tagline, as defined in the General Settings section.' ), admin_url( 'options-general.php' ) ) . @@ -479,7 +479,7 @@ class Custom_Image_Header {
Customizer.' ), admin_url( 'customize.php?autofocus[control]=header_image' ) ); @@ -492,7 +492,7 @@ class Custom_Image_Header {
Visit your site to see how it looks.' ), home_url( '/' ) ); ?>
@@ -551,15 +551,15 @@ class Custom_Image_Header {
%1$d × %2$d pixels will be used as-is.' ) . '
', get_theme_support( 'custom-header', 'width' ), get_theme_support( 'custom-header', 'height' ) );
} elseif ( current_theme_supports( 'custom-header', 'flex-height' ) ) {
if ( ! current_theme_supports( 'custom-header', 'flex-width' ) ) {
printf(
- /* translators: %s: size in pixels */
+ /* translators: %s: Size in pixels. */
__( 'Images should be at least %s wide.' ) . ' ',
sprintf(
- /* translators: %d: custom header width */
+ /* translators: %d: Custom header width. */
'' . __( '%d pixels' ) . '',
get_theme_support( 'custom-header', 'width' )
)
@@ -568,10 +568,10 @@ class Custom_Image_Header {
} elseif ( current_theme_supports( 'custom-header', 'flex-width' ) ) {
if ( ! current_theme_supports( 'custom-header', 'flex-height' ) ) {
printf(
- /* translators: %s: size in pixels */
+ /* translators: %s: Size in pixels. */
__( 'Images should be at least %s tall.' ) . ' ',
sprintf(
- /* translators: %d: custom header height */
+ /* translators: %d: Custom header height. */
'' . __( '%d pixels' ) . '',
get_theme_support( 'custom-header', 'height' )
)
@@ -581,10 +581,10 @@ class Custom_Image_Header {
if ( current_theme_supports( 'custom-header', 'flex-height' ) || current_theme_supports( 'custom-header', 'flex-width' ) ) {
if ( current_theme_supports( 'custom-header', 'width' ) ) {
printf(
- /* translators: %s: size in pixels */
+ /* translators: %s: Size in pixels. */
__( 'Suggested width is %s.' ) . ' ',
sprintf(
- /* translators: %d: custom header width */
+ /* translators: %d: Custom header width. */
'' . __( '%d pixels' ) . '',
get_theme_support( 'custom-header', 'width' )
)
@@ -592,10 +592,10 @@ class Custom_Image_Header {
}
if ( current_theme_supports( 'custom-header', 'height' ) ) {
printf(
- /* translators: %s: size in pixels */
+ /* translators: %s: Size in pixels. */
__( 'Suggested height is %s.' ) . ' ',
sprintf(
- /* translators: %d: custom header height */
+ /* translators: %d: Custom header height. */
'' . __( '%d pixels' ) . '',
get_theme_support( 'custom-header', 'height' )
)
@@ -734,7 +734,7 @@ class Custom_Image_Header {
echo '';
if ( $default_color ) {
- /* translators: %s: Default text color */
+ /* translators: %s: Default text color. */
echo ' ' . sprintf( _x( 'Default: %s', 'color' ), esc_html( $default_color ) ) . '';
}
?>
diff --git a/wp-admin/includes/class-language-pack-upgrader-skin.php b/wp-admin/includes/class-language-pack-upgrader-skin.php
index 19ef44393e..cbbc834808 100644
--- a/wp-admin/includes/class-language-pack-upgrader-skin.php
+++ b/wp-admin/includes/class-language-pack-upgrader-skin.php
@@ -47,7 +47,7 @@ class Language_Pack_Upgrader_Skin extends WP_Upgrader_Skin {
echo '
url ) . '">' . esc_html( $original_title ) . '' ); ?>
diff --git a/wp-admin/includes/class-wp-automatic-updater.php b/wp-admin/includes/class-wp-automatic-updater.php index b6213cca2a..fe0142dc7a 100644 --- a/wp-admin/includes/class-wp-automatic-updater.php +++ b/wp-admin/includes/class-wp-automatic-updater.php @@ -315,30 +315,30 @@ class WP_Automatic_Updater { $upgrader_item = $item; switch ( $type ) { case 'core': - /* translators: %s: WordPress version */ + /* translators: %s: WordPress version. */ $skin->feedback( __( 'Updating to WordPress %s' ), $item->version ); - /* translators: %s: WordPress version */ + /* translators: %s: WordPress version. */ $item_name = sprintf( __( 'WordPress %s' ), $item->version ); break; case 'theme': $upgrader_item = $item->theme; $theme = wp_get_theme( $upgrader_item ); $item_name = $theme->Get( 'Name' ); - /* translators: %s: Theme name */ + /* translators: %s: Theme name. */ $skin->feedback( __( 'Updating theme: %s' ), $item_name ); break; case 'plugin': $upgrader_item = $item->plugin; $plugin_data = get_plugin_data( $context . '/' . $upgrader_item ); $item_name = $plugin_data['Name']; - /* translators: %s: Plugin name */ + /* translators: %s: Plugin name. */ $skin->feedback( __( 'Updating plugin: %s' ), $item_name ); break; case 'translation': $language_item_name = $upgrader->get_name_for_update( $item ); - /* translators: %s: Project name (plugin, theme, or WordPress) */ + /* translators: %s: Project name (plugin, theme, or WordPress). */ $item_name = sprintf( __( 'Translations for %s' ), $language_item_name ); - /* translators: 1: Project name (plugin, theme, or WordPress), 2: Language */ + /* translators: 1: Project name (plugin, theme, or WordPress), 2: Language. */ $skin->feedback( sprintf( __( 'Updating translations for %1$s (%2$s)…' ), $language_item_name, $item->language ) ); break; } @@ -677,7 +677,7 @@ class WP_Automatic_Updater { switch ( $type ) { case 'success': $body .= sprintf( - /* translators: 1: Home URL, 2: WordPress version */ + /* translators: 1: Home URL, 2: WordPress version. */ __( 'Howdy! Your site at %1$s has been updated automatically to WordPress %2$s.' ), home_url(), $core_update->current @@ -689,12 +689,12 @@ class WP_Automatic_Updater { // Can only reference the About screen if their update was successful. list( $about_version ) = explode( '-', $core_update->current, 2 ); - /* translators: %s: WordPress version */ + /* translators: %s: WordPress version. */ $body .= sprintf( __( 'For more on version %s, see the About WordPress screen:' ), $about_version ); $body .= "\n" . admin_url( 'about.php' ); if ( $newer_version_available ) { - /* translators: %s: WordPress latest version */ + /* translators: %s: WordPress latest version. */ $body .= "\n\n" . sprintf( __( 'WordPress %s is also now available.' ), $next_user_core_update->current ) . ' '; $body .= __( 'Updating is easy and only takes a few moments:' ); $body .= "\n" . network_admin_url( 'update-core.php' ); @@ -705,7 +705,7 @@ class WP_Automatic_Updater { case 'fail': case 'manual': $body .= sprintf( - /* translators: 1: Home URL, 2: WordPress version */ + /* translators: 1: Home URL, 2: WordPress version. */ __( 'Please update your site at %1$s to WordPress %2$s.' ), home_url(), $next_user_core_update->current @@ -726,14 +726,14 @@ class WP_Automatic_Updater { case 'critical': if ( $newer_version_available ) { $body .= sprintf( - /* translators: 1: Home URL, 2: WordPress version */ + /* translators: 1: Home URL, 2: WordPress version. */ __( 'Your site at %1$s experienced a critical failure while trying to update WordPress to version %2$s.' ), home_url(), $core_update->current ); } else { $body .= sprintf( - /* translators: 1: Home URL, 2: WordPress latest version */ + /* translators: 1: Home URL, 2: WordPress latest version. */ __( 'Your site at %1$s experienced a critical failure while trying to update to the latest version of WordPress, %2$s.' ), home_url(), $core_update->current @@ -751,7 +751,7 @@ class WP_Automatic_Updater { if ( $critical_support ) { // Support offer if available. $body .= "\n\n" . sprintf( - /* translators: %s: Support email address */ + /* translators: %s: Support email address. */ __( 'The WordPress team is willing to help you. Forward this email to %s and the team will work with you to make sure your site is working.' ), $core_update->support_email ); @@ -780,7 +780,7 @@ class WP_Automatic_Updater { if ( 'critical' == $type && is_wp_error( $result ) ) { $body .= "\n***\n\n"; - /* translators: %s: WordPress version */ + /* translators: %s: WordPress version. */ $body .= sprintf( __( 'Your site was running version %s.' ), get_bloginfo( 'version' ) ); $body .= ' ' . __( 'We have some data that describes the error your site encountered.' ); $body .= ' ' . __( 'Your hosting company, support forum volunteers, or a friendly developer may be able to use this information to help you:' ); @@ -798,7 +798,7 @@ class WP_Automatic_Updater { continue; } $error_code = $error->get_error_code(); - /* translators: %s: Error code */ + /* translators: %s: Error code. */ $body .= "\n\n" . sprintf( __( 'Error code: %s' ), $error_code ); if ( 'rollback_was_required' == $error_code ) { continue; @@ -857,17 +857,17 @@ class WP_Automatic_Updater { $body = array(); $failures = 0; - /* translators: %s: Network home URL */ + /* translators: %s: Network home URL. */ $body[] = sprintf( __( 'WordPress site: %s' ), network_home_url( '/' ) ); // Core if ( isset( $this->update_results['core'] ) ) { $result = $this->update_results['core'][0]; if ( $result->result && ! is_wp_error( $result->result ) ) { - /* translators: %s: WordPress version */ + /* translators: %s: WordPress version. */ $body[] = sprintf( __( 'SUCCESS: WordPress was successfully updated to %s' ), $result->name ); } else { - /* translators: %s: WordPress version */ + /* translators: %s: WordPress version. */ $body[] = sprintf( __( 'FAILED: WordPress failed to update to %s' ), $result->name ); $failures++; } @@ -889,7 +889,7 @@ class WP_Automatic_Updater { $body[] = $messages[ $type ]; foreach ( wp_list_pluck( $success_items, 'name' ) as $name ) { - /* translators: %s: name of plugin / theme / translation */ + /* translators: %s: Name of plugin / theme / translation. */ $body[] = ' * ' . sprintf( __( 'SUCCESS: %s' ), $name ); } } @@ -904,7 +904,7 @@ class WP_Automatic_Updater { $body[] = $messages[ $type ]; foreach ( $this->update_results[ $type ] as $item ) { if ( ! $item->result || is_wp_error( $item->result ) ) { - /* translators: %s: name of plugin / theme / translation */ + /* translators: %s: Name of plugin / theme / translation. */ $body[] = ' * ' . sprintf( __( 'FAILED: %s' ), $item->name ); $failures++; } @@ -931,10 +931,10 @@ Thanks! -- The WordPress Team" ); $body[] = ''; - /* translators: Background update failed notification email subject. %s: Site title */ + /* translators: Background update failed notification email subject. %s: Site title. */ $subject = sprintf( __( '[%s] Background Update Failed' ), $site_title ); } else { - /* translators: Background update finished notification email subject. %s: Site title */ + /* translators: Background update finished notification email subject. %s: Site title. */ $subject = sprintf( __( '[%s] Background Update Finished' ), $site_title ); } diff --git a/wp-admin/includes/class-wp-comments-list-table.php b/wp-admin/includes/class-wp-comments-list-table.php index d6a23ae523..1da3edd72f 100644 --- a/wp-admin/includes/class-wp-comments-list-table.php +++ b/wp-admin/includes/class-wp-comments-list-table.php @@ -217,42 +217,42 @@ class WP_Comments_List_Table extends WP_List_Table { $num_comments = ( $post_id ) ? wp_count_comments( $post_id ) : wp_count_comments(); $stati = array( - /* translators: %s: all comments count */ + /* translators: %s: Number of comments. */ 'all' => _nx_noop( 'All (%s)', 'All (%s)', 'comments' ), // singular not used - /* translators: %s: current user's comments count */ + /* translators: %s: Number of comments. */ 'mine' => _nx_noop( 'Mine (%s)', 'Mine (%s)', 'comments' ), - /* translators: %s: pending comments count */ + /* translators: %s: Number of comments. */ 'moderated' => _nx_noop( 'Pending (%s)', 'Pending (%s)', 'comments' ), - /* translators: %s: approved comments count */ + /* translators: %s: Number of comments. */ 'approved' => _nx_noop( 'Approved (%s)', 'Approved (%s)', 'comments' ), - /* translators: %s: spam comments count */ + /* translators: %s: Number of comments. */ 'spam' => _nx_noop( 'Spam (%s)', 'Spam (%s)', 'comments' ), - /* translators: %s: trashed comments count */ + /* translators: %s: Number of comments. */ 'trash' => _nx_noop( 'Trash (%s)', 'Trash (%s)', @@ -455,7 +455,7 @@ class WP_Comments_List_Table extends WP_List_Table { $columns['comment'] = _x( 'Comment', 'column name' ); if ( ! $post_id ) { - /* translators: column name or table row header */ + /* translators: Column name or table row header. */ $columns['response'] = __( 'In Response To' ); } @@ -618,39 +618,116 @@ class WP_Comments_List_Table extends WP_List_Table { // Not looking at all comments. if ( $comment_status && 'all' != $comment_status ) { if ( 'approved' === $the_comment_status ) { - $actions['unapprove'] = "" . __( 'Unapprove' ) . ''; + $actions['unapprove'] = sprintf( + '%s', + $unapprove_url, + "delete:the-comment-list:comment-{$comment->comment_ID}:e7e7d3:action=dim-comment&new=unapproved", + esc_attr__( 'Unapprove this comment' ), + __( 'Unapprove' ) + ); } elseif ( 'unapproved' === $the_comment_status ) { - $actions['approve'] = "" . __( 'Approve' ) . ''; + $actions['approve'] = sprintf( + '%s', + $approve_url, + "delete:the-comment-list:comment-{$comment->comment_ID}:e7e7d3:action=dim-comment&new=approved", + esc_attr__( 'Approve this comment' ), + __( 'Approve' ) + ); } } else { - $actions['approve'] = "" . __( 'Approve' ) . ''; - $actions['unapprove'] = "" . __( 'Unapprove' ) . ''; + $actions['approve'] = sprintf( + '%s', + $approve_url, + "dim:the-comment-list:comment-{$comment->comment_ID}:unapproved:e7e7d3:e7e7d3:new=approved", + esc_attr__( 'Approve this comment' ), + __( 'Approve' ) + ); + + $actions['unapprove'] = sprintf( + '%s', + $unapprove_url, + "dim:the-comment-list:comment-{$comment->comment_ID}:unapproved:e7e7d3:e7e7d3:new=unapproved", + esc_attr__( 'Unapprove this comment' ), + __( 'Unapprove' ) + ); } if ( 'spam' !== $the_comment_status ) { - $actions['spam'] = "" . /* translators: mark as spam link */ _x( 'Spam', 'verb' ) . ''; + $actions['spam'] = sprinf( + '%s', + $spam_url, + "delete:the-comment-list:comment-{$comment->comment_ID}::spam=1", + esc_attr__( 'Mark this comment as spam' ), + /* translators: "Mark as spam" link. */ + _x( 'Spam', 'verb' ) + ); } elseif ( 'spam' === $the_comment_status ) { - $actions['unspam'] = "" . _x( 'Not Spam', 'comment' ) . ''; + $actions['unspam'] = sprintf( + '%s', + $unspam_url, + "delete:the-comment-list:comment-{$comment->comment_ID}:66cc66:unspam=1", + esc_attr__( 'Restore this comment from the spam' ), + _x( 'Not Spam', 'comment' ) + ); } if ( 'trash' === $the_comment_status ) { - $actions['untrash'] = "" . __( 'Restore' ) . ''; + $actions['untrash'] = sprintf( + '%s', + $untrash_url, + "delete:the-comment-list:comment-{$comment->comment_ID}:66cc66:untrash=1", + esc_attr__( 'Restore this comment from the Trash' ), + __( 'Restore' ) + ); } if ( 'spam' === $the_comment_status || 'trash' === $the_comment_status || ! EMPTY_TRASH_DAYS ) { - $actions['delete'] = "" . __( 'Delete Permanently' ) . ''; + $actions['delete'] = sprintf( + '%s', + $delete_url, + "delete:the-comment-list:comment-{$comment->comment_ID}::delete=1", + esc_attr__( 'Delete this comment permanently' ), + __( 'Delete Permanently' ) + ); } else { - $actions['trash'] = "" . _x( 'Trash', 'verb' ) . ''; + $actions['trash'] = sprintf( + '%s', + $trash_url, + "delete:the-comment-list:comment-{$comment->comment_ID}::trash=1", + esc_attr__( 'Move this comment to the Trash' ), + _x( 'Trash', 'verb' ) + ); } if ( 'spam' !== $the_comment_status && 'trash' !== $the_comment_status ) { - $actions['edit'] = "" . __( 'Edit' ) . ''; + $actions['edit'] = sprintf( + '%s', + "comment.php?action=editcomment&c={$comment->comment_ID}", + esc_attr__( 'Edit this comment' ), + __( 'Edit' ) + ); $format = ''; - $actions['quickedit'] = sprintf( $format, $comment->comment_ID, $comment->comment_post_ID, 'edit', 'vim-q comment-inline', esc_attr__( 'Quick edit this comment inline' ), __( 'Quick Edit' ) ); + $actions['quickedit'] = sprintf( + $format, + $comment->comment_ID, + $comment->comment_post_ID, + 'edit', + 'vim-q comment-inline', + esc_attr__( 'Quick edit this comment inline' ), + __( 'Quick Edit' ) + ); - $actions['reply'] = sprintf( $format, $comment->comment_ID, $comment->comment_post_ID, 'replyto', 'vim-r comment-inline', esc_attr__( 'Reply to this comment' ), __( 'Reply' ) ); + $actions['reply'] = sprintf( + $format, + $comment->comment_ID, + $comment->comment_post_ID, + 'replyto', + 'vim-r comment-inline', + esc_attr__( 'Reply to this comment' ), + __( 'Reply' ) + ); } /** This filter is documented in wp-admin/includes/dashboard.php */ @@ -708,7 +785,7 @@ class WP_Comments_List_Table extends WP_List_Table { $parent_link = esc_url( get_comment_link( $parent ) ); $name = get_comment_author( $parent ); printf( - /* translators: %s: comment link */ + /* translators: %s: Comment link. */ __( 'In reply to %s.' ), '' . $name . '' ); @@ -786,9 +863,9 @@ class WP_Comments_List_Table extends WP_List_Table { */ public function column_date( $comment ) { $submitted = sprintf( - /* translators: 1: comment date, 2: comment time */ + /* translators: 1: Comment date, 2: Comment time. */ __( '%1$s at %2$s' ), - /* translators: comment date format. See https://secure.php.net/date */ + /* translators: Comment date format. See https://secure.php.net/date */ get_comment_date( __( 'Y/m/d' ), $comment ), get_comment_date( __( 'g:i a' ), $comment ) ); diff --git a/wp-admin/includes/class-wp-community-events.php b/wp-admin/includes/class-wp-community-events.php index ac77cb7482..2fa955254f 100644 --- a/wp-admin/includes/class-wp-community-events.php +++ b/wp-admin/includes/class-wp-community-events.php @@ -113,7 +113,7 @@ class WP_Community_Events { } elseif ( 200 !== $response_code ) { $response_error = new WP_Error( 'api-error', - /* translators: %d: numeric HTTP status code, e.g. 400, 403, 500, 504, etc. */ + /* translators: %d: Numeric HTTP status code, e.g. 400, 403, 500, 504, etc. */ sprintf( __( 'Invalid API response code (%d)' ), $response_code ) ); } elseif ( ! isset( $response_body['location'], $response_body['events'] ) ) { @@ -375,7 +375,7 @@ class WP_Community_Events { * so that users can tell at a glance if the event is on a day they * are available, without having to open the link. */ - /* translators: Date format for upcoming events on the dashboard. Include the day of the week. See https://secure.php.net/date. */ + /* translators: Date format for upcoming events on the dashboard. Include the day of the week. See https://secure.php.net/date */ $response_body['events'][ $key ]['formatted_date'] = date_i18n( __( 'l, M j, Y' ), $timestamp ); $response_body['events'][ $key ]['formatted_time'] = date_i18n( get_option( 'time_format' ), $timestamp ); } diff --git a/wp-admin/includes/class-wp-debug-data.php b/wp-admin/includes/class-wp-debug-data.php index 2f6a788b2f..0039759ec9 100644 --- a/wp-admin/includes/class-wp-debug-data.php +++ b/wp-admin/includes/class-wp-debug-data.php @@ -45,7 +45,7 @@ class WP_Debug_Data { foreach ( $core_updates as $core => $update ) { if ( 'upgrade' === $update->response ) { - // translators: %s: Latest WordPress version number. + /* translators: %s: Latest WordPress version number. */ $core_update_needed = ' ' . sprintf( __( '(Latest version: %s)' ), $update->version ); } else { $core_update_needed = ''; @@ -124,7 +124,7 @@ class WP_Debug_Data { 'label' => __( 'Drop-ins' ), 'show_count' => true, 'description' => sprintf( - /* translators: %s: wp-content directory name */ + /* translators: %s: wp-content directory name. */ __( 'Drop-ins are single files, found in the %s directory, that replace or enhance WordPress features in ways that are not possible for traditional plugins.' ), '' . str_replace( ABSPATH, '', WP_CONTENT_DIR ) . '
'
),
@@ -405,7 +405,7 @@ class WP_Debug_Data {
$info['wp-core']['fields']['dotorg_communication'] = array(
'label' => __( 'Communication with WordPress.org' ),
'value' => sprintf(
- // translators: 1: The IP address WordPress.org resolves to. 2: The error returned by the lookup.
+ /* translators: 1: The IP address WordPress.org resolves to. 2: The error returned by the lookup. */
__( 'Unable to reach WordPress.org at %1$s: %2$s' ),
gethostbyname( 'wordpress.org' ),
$wp_dotorg->get_error_message()
@@ -798,18 +798,18 @@ class WP_Debug_Data {
$plugin_version_string_debug = 'author: (undefined), version: (undefined)';
if ( ! empty( $plugin_version ) && ! empty( $plugin_author ) ) {
- // translators: 1: Plugin version number. 2: Plugin author name.
+ /* translators: 1: Plugin version number. 2: Plugin author name. */
$plugin_version_string = sprintf( __( 'Version %1$s by %2$s' ), $plugin_version, $plugin_author );
$plugin_version_string_debug = sprintf( 'version: %s, author: %s', $plugin_version, $plugin_author );
} else {
if ( ! empty( $plugin_author ) ) {
- // translators: %s: Plugin author name.
+ /* translators: %s: Plugin author name. */
$plugin_version_string = sprintf( __( 'By %s' ), $plugin_author );
$plugin_version_string_debug = sprintf( 'author: %s, version: (undefined)', $plugin_author );
}
if ( ! empty( $plugin_version ) ) {
- // translators: %s: Plugin version number.
+ /* translators: %s: Plugin version number. */
$plugin_version_string = sprintf( __( 'Version %s' ), $plugin_version );
$plugin_version_string_debug = sprintf( 'author: (undefined), version: %s', $plugin_version );
}
@@ -836,25 +836,25 @@ class WP_Debug_Data {
$plugin_version_string_debug = 'author: (undefined), version: (undefined)';
if ( ! empty( $plugin_version ) && ! empty( $plugin_author ) ) {
- // translators: 1: Plugin version number. 2: Plugin author name.
+ /* translators: 1: Plugin version number. 2: Plugin author name. */
$plugin_version_string = sprintf( __( 'Version %1$s by %2$s' ), $plugin_version, $plugin_author );
$plugin_version_string_debug = sprintf( 'version: %s, author: %s', $plugin_version, $plugin_author );
} else {
if ( ! empty( $plugin_author ) ) {
- // translators: %s: Plugin author name.
+ /* translators: %s: Plugin author name. */
$plugin_version_string = sprintf( __( 'By %s' ), $plugin_author );
$plugin_version_string_debug = sprintf( 'author: %s, version: (undefined)', $plugin_author );
}
if ( ! empty( $plugin_version ) ) {
- // translators: %s: Plugin version number.
+ /* translators: %s: Plugin version number. */
$plugin_version_string = sprintf( __( 'Version %s' ), $plugin_version );
$plugin_version_string_debug = sprintf( 'author: (undefined), version: %s', $plugin_version );
}
}
if ( array_key_exists( $plugin_path, $plugin_updates ) ) {
- // translators: %s: Latest plugin version number.
+ /* translators: %s: Latest plugin version number. */
$plugin_version_string .= ' ' . sprintf( __( '(Latest version: %s)' ), $plugin_updates[ $plugin_path ]->update->new_version );
$plugin_version_string_debug .= sprintf( ' (latest version: %s)', $plugin_updates[ $plugin_path ]->update->new_version );
}
@@ -886,7 +886,7 @@ class WP_Debug_Data {
if ( array_key_exists( $active_theme->stylesheet, $theme_updates ) ) {
$theme_update_new_version = $theme_updates[ $active_theme->stylesheet ]->update['new_version'];
- // translators: %s: Latest theme version number.
+ /* translators: %s: Latest theme version number. */
$active_theme_version .= ' ' . sprintf( __( '(Latest version: %s)' ), $theme_update_new_version );
$active_theme_version_debug .= sprintf( ' (latest version: %s)', $theme_update_new_version );
}
@@ -895,7 +895,7 @@ class WP_Debug_Data {
if ( $active_theme->parent_theme ) {
$active_theme_parent_theme = sprintf(
- // translators: 1: Theme name. 2: Theme slug.
+ /* translators: 1: Theme name. 2: Theme slug. */
__( '%1$s (%2$s)' ),
$active_theme->parent_theme,
$active_theme->template
@@ -915,7 +915,7 @@ class WP_Debug_Data {
'label' => __( 'Name' ),
// phpcs:ignore WordPress.NamingConventions.ValidVariableName.UsedPropertyNotSnakeCase
'value' => sprintf(
- // translators: 1: Theme name. 2: Theme slug.
+ /* translators: 1: Theme name. 2: Theme slug. */
__( '%1$s (%2$s)' ),
// phpcs:ignore WordPress.NamingConventions.ValidVariableName.UsedPropertyNotSnakeCase
$active_theme->Name,
@@ -962,7 +962,7 @@ class WP_Debug_Data {
if ( array_key_exists( $parent_theme->stylesheet, $theme_updates ) ) {
$parent_theme_update_new_version = $theme_updates[ $parent_theme->stylesheet ]->update['new_version'];
- // translators: %s: Latest theme version number.
+ /* translators: %s: Latest theme version number. */
$parent_theme_version .= ' ' . sprintf( __( '(Latest version: %s)' ), $parent_theme_update_new_version );
$parent_theme_version_debug .= sprintf( ' (latest version: %s)', $parent_theme_update_new_version );
}
@@ -974,7 +974,7 @@ class WP_Debug_Data {
'label' => __( 'Name' ),
// phpcs:ignore WordPress.NamingConventions.ValidVariableName.UsedPropertyNotSnakeCase
'value' => sprintf(
- // translators: 1: Theme name. 2: Theme slug.
+ /* translators: 1: Theme name. 2: Theme slug. */
__( '%1$s (%2$s)' ),
// phpcs:ignore WordPress.NamingConventions.ValidVariableName.UsedPropertyNotSnakeCase
$parent_theme->Name,
@@ -1029,25 +1029,25 @@ class WP_Debug_Data {
$theme_version_string_debug = 'undefined';
if ( ! empty( $theme_version ) && ! empty( $theme_author ) ) {
- // translators: 1: Theme version number. 2: Theme author name.
+ /* translators: 1: Theme version number. 2: Theme author name. */
$theme_version_string = sprintf( __( 'Version %1$s by %2$s' ), $theme_version, $theme_author );
$theme_version_string_debug = sprintf( 'version: %s, author: %s', $theme_version, $theme_author );
} else {
if ( ! empty( $theme_author ) ) {
- // translators: %s: Theme author name.
+ /* translators: %s: Theme author name. */
$theme_version_string = sprintf( __( 'By %s' ), $theme_author );
$theme_version_string_debug = sprintf( 'author: %s, version: (undefined)', $theme_author );
}
if ( ! empty( $theme_version ) ) {
- // translators: %s: Theme version number.
+ /* translators: %s: Theme version number. */
$theme_version_string = sprintf( __( 'Version %s' ), $theme_version );
$theme_version_string_debug = sprintf( 'author: (undefined), version: %s', $theme_version );
}
}
if ( array_key_exists( $theme_slug, $theme_updates ) ) {
- // translators: %s: Latest theme version number.
+ /* translators: %s: Latest theme version number. */
$theme_version_string .= ' ' . sprintf( __( '(Latest version: %s)' ), $theme_updates[ $theme_slug ]->update['new_version'] );
$theme_version_string_debug .= sprintf( ' (latest version: %s)', $theme_updates[ $theme_slug ]->update['new_version'] );
}
@@ -1055,7 +1055,7 @@ class WP_Debug_Data {
// phpcs:ignore WordPress.NamingConventions.ValidVariableName.UsedPropertyNotSnakeCase
$info['wp-themes-inactive']['fields'][ sanitize_text_field( $theme->Name ) ] = array(
'label' => sprintf(
- // translators: 1: Theme name. 2: Theme slug.
+ /* translators: 1: Theme name. 2: Theme slug. */
__( '%1$s (%2$s)' ),
// phpcs:ignore WordPress.NamingConventions.ValidVariableName.UsedPropertyNotSnakeCase
$theme->Name,
diff --git a/wp-admin/includes/class-wp-filesystem-base.php b/wp-admin/includes/class-wp-filesystem-base.php
index 2c616322e0..abefdd0a5b 100644
--- a/wp-admin/includes/class-wp-filesystem-base.php
+++ b/wp-admin/includes/class-wp-filesystem-base.php
@@ -251,7 +251,7 @@ class WP_Filesystem_Base {
$folder = untrailingslashit( $folder );
if ( $this->verbose ) {
- /* translators: 1: folder to locate, 2: folder to start searching from */
+ /* translators: 1: Folder to locate, 2: Folder to start searching from. */
printf( "\n" . __( 'Looking for %1$s in %2$s' ) . "'; printf( - /* translators: 1: site name, 2: site tagline. */ + /* translators: 1: Site title, 2: Site tagline. */ __( '%1$s – %2$s' ), get_option( 'blogname' ), '' . get_option( 'blogdescription ' ) . '' diff --git a/wp-admin/includes/class-wp-ms-themes-list-table.php b/wp-admin/includes/class-wp-ms-themes-list-table.php index da2bbff39f..cb1f34999d 100644 --- a/wp-admin/includes/class-wp-ms-themes-list-table.php +++ b/wp-admin/includes/class-wp-ms-themes-list-table.php @@ -300,7 +300,7 @@ class WP_MS_Themes_List_Table extends WP_List_Table { switch ( $type ) { case 'all': - /* translators: %s: number of themes */ + /* translators: %s: Number of themes. */ $text = _nx( 'All (%s)', 'All (%s)', @@ -309,7 +309,7 @@ class WP_MS_Themes_List_Table extends WP_List_Table { ); break; case 'enabled': - /* translators: %s: number of themes */ + /* translators: %s: Number of themes. */ $text = _nx( 'Enabled (%s)', 'Enabled (%s)', @@ -318,7 +318,7 @@ class WP_MS_Themes_List_Table extends WP_List_Table { ); break; case 'disabled': - /* translators: %s: number of themes */ + /* translators: %s: Number of themes. */ $text = _nx( 'Disabled (%s)', 'Disabled (%s)', @@ -327,7 +327,7 @@ class WP_MS_Themes_List_Table extends WP_List_Table { ); break; case 'upgrade': - /* translators: %s: number of themes */ + /* translators: %s: Number of themes. */ $text = _nx( 'Update Available (%s)', 'Update Available (%s)', @@ -336,7 +336,7 @@ class WP_MS_Themes_List_Table extends WP_List_Table { ); break; case 'broken': - /* translators: %s: number of themes */ + /* translators: %s: Number of themes. */ $text = _nx( 'Broken (%s)', 'Broken (%s)', @@ -461,10 +461,10 @@ class WP_MS_Themes_List_Table extends WP_List_Table { ); if ( $this->is_site_themes ) { - /* translators: %s: theme name */ + /* translators: %s: Theme name. */ $aria_label = sprintf( __( 'Enable %s' ), $theme->display( 'Name' ) ); } else { - /* translators: %s: theme name */ + /* translators: %s: Theme name. */ $aria_label = sprintf( __( 'Network Enable %s' ), $theme->display( 'Name' ) ); } @@ -487,10 +487,10 @@ class WP_MS_Themes_List_Table extends WP_List_Table { ); if ( $this->is_site_themes ) { - /* translators: %s: theme name */ + /* translators: %s: Theme name. */ $aria_label = sprintf( __( 'Disable %s' ), $theme->display( 'Name' ) ); } else { - /* translators: %s: theme name */ + /* translators: %s: Theme name. */ $aria_label = sprintf( __( 'Network Disable %s' ), $theme->display( 'Name' ) ); } @@ -514,7 +514,7 @@ class WP_MS_Themes_List_Table extends WP_List_Table { 'themes.php' ); - /* translators: %s: theme name */ + /* translators: %s: Theme name. */ $aria_label = sprintf( _x( 'Delete %s', 'theme' ), $theme->display( 'Name' ) ); $actions['delete'] = sprintf( @@ -602,15 +602,15 @@ class WP_MS_Themes_List_Table extends WP_List_Table { $theme_meta = array(); if ( $theme->get( 'Version' ) ) { - /* translators: %s: theme version */ + /* translators: %s: Theme version. */ $theme_meta[] = sprintf( __( 'Version %s' ), $theme->display( 'Version' ) ); } - /* translators: %s: theme author */ + /* translators: %s: Theme author. */ $theme_meta[] = sprintf( __( 'By %s' ), $theme->display( 'Author' ) ); if ( $theme->get( 'ThemeURI' ) ) { - /* translators: %s: theme name */ + /* translators: %s: Theme name. */ $aria_label = sprintf( __( 'Visit %s homepage' ), $theme->display( 'Name' ) ); $theme_meta[] = sprintf( diff --git a/wp-admin/includes/class-wp-ms-users-list-table.php b/wp-admin/includes/class-wp-ms-users-list-table.php index e181723585..1fd437ca2f 100644 --- a/wp-admin/includes/class-wp-ms-users-list-table.php +++ b/wp-admin/includes/class-wp-ms-users-list-table.php @@ -144,7 +144,7 @@ class WP_MS_Users_List_Table extends WP_List_Table { network_admin_url( 'users.php' ), $current_link_attributes, sprintf( - /* translators: number of users */ + /* translators: Number of users. */ _nx( 'All (%s)', 'All (%s)', @@ -160,7 +160,7 @@ class WP_MS_Users_List_Table extends WP_List_Table { network_admin_url( 'users.php?role=super' ), $current_link_attributes, sprintf( - /* translators: number of users */ + /* translators: Number of users. */ _n( 'Super Admin (%s)', 'Super Admins (%s)', @@ -237,7 +237,7 @@ class WP_MS_Users_List_Table extends WP_List_Table { ?> diff --git a/wp-admin/includes/class-wp-plugin-install-list-table.php b/wp-admin/includes/class-wp-plugin-install-list-table.php index 47aacbea71..89149daf86 100644 --- a/wp-admin/includes/class-wp-plugin-install-list-table.php +++ b/wp-admin/includes/class-wp-plugin-install-list-table.php @@ -499,7 +499,7 @@ class WP_Plugin_Install_List_Table extends WP_List_Table { $author = wp_kses( $plugin['author'], $plugins_allowedtags ); if ( ! empty( $author ) ) { - /* translators: %s: plugin author */ + /* translators: %s: Plugin author. */ $author = ' ' . sprintf( __( 'By %s' ), $author ) . ''; } @@ -523,7 +523,7 @@ class WP_Plugin_Install_List_Table extends WP_List_Table { '%s', esc_attr( $plugin['slug'] ), esc_url( $status['url'] ), - /* translators: %s: plugin name and version */ + /* translators: %s: Plugin name and version. */ esc_attr( sprintf( __( 'Install %s now' ), $name ) ), esc_attr( $name ), __( 'Install Now' ) @@ -545,7 +545,7 @@ class WP_Plugin_Install_List_Table extends WP_List_Table { esc_attr( $status['file'] ), esc_attr( $plugin['slug'] ), esc_url( $status['url'] ), - /* translators: %s: plugin name and version */ + /* translators: %s: Plugin name and version. */ esc_attr( sprintf( __( 'Update %s now' ), $name ) ), esc_attr( $name ), __( 'Update Now' ) @@ -568,7 +568,7 @@ class WP_Plugin_Install_List_Table extends WP_List_Table { ); } elseif ( current_user_can( 'activate_plugin', $status['file'] ) ) { $button_text = __( 'Activate' ); - /* translators: %s: plugin name */ + /* translators: %s: Plugin name. */ $button_label = _x( 'Activate %s', 'plugin' ); $activate_url = add_query_arg( array( @@ -581,7 +581,7 @@ class WP_Plugin_Install_List_Table extends WP_List_Table { if ( is_network_admin() ) { $button_text = __( 'Network Activate' ); - /* translators: %s: plugin name */ + /* translators: %s: Plugin name. */ $button_label = _x( 'Network Activate %s', 'plugin' ); $activate_url = add_query_arg( array( 'networkwide' => 1 ), $activate_url ); } @@ -610,7 +610,7 @@ class WP_Plugin_Install_List_Table extends WP_List_Table { $action_links[] = sprintf( '%s', esc_url( $details_link ), - /* translators: %s: plugin name and version */ + /* translators: %s: Plugin name and version. */ esc_attr( sprintf( __( 'More information about %s' ), $name ) ), esc_attr( $name ), __( 'More Details' ) @@ -646,7 +646,7 @@ class WP_Plugin_Install_List_Table extends WP_List_Table { _e( 'This plugin doesn’t work with your versions of WordPress and PHP.' ); if ( current_user_can( 'update_core' ) && current_user_can( 'update_php' ) ) { printf( - /* translators: 1: "Update WordPress" screen URL, 2: "Update PHP" page URL */ + /* translators: 1: URL to WordPress Updates screen, 2: URL to Update PHP page. */ ' ' . __( 'Please update WordPress, and then learn more about updating PHP.' ), self_admin_url( 'update-core.php' ), esc_url( wp_get_update_php_url() ) @@ -654,13 +654,13 @@ class WP_Plugin_Install_List_Table extends WP_List_Table { wp_update_php_annotation( '
', '' ); } elseif ( current_user_can( 'update_core' ) ) { printf( - /* translators: %s: "Update WordPress" screen URL */ + /* translators: %s: URL to WordPress Updates screen. */ ' ' . __( 'Please update WordPress.' ), self_admin_url( 'update-core.php' ) ); } elseif ( current_user_can( 'update_php' ) ) { printf( - /* translators: %s: "Update PHP" page URL */ + /* translators: %s: URL to Update PHP page. */ ' ' . __( 'Learn more about updating PHP.' ), esc_url( wp_get_update_php_url() ) ); @@ -670,7 +670,7 @@ class WP_Plugin_Install_List_Table extends WP_List_Table { _e( 'This plugin doesn’t work with your version of WordPress.' ); if ( current_user_can( 'update_core' ) ) { printf( - /* translators: %s: "Update WordPress" screen URL */ + /* translators: %s: URL to WordPress Updates screen. */ ' ' . __( 'Please update WordPress.' ), self_admin_url( 'update-core.php' ) ); @@ -679,7 +679,7 @@ class WP_Plugin_Install_List_Table extends WP_List_Table { _e( 'This plugin doesn’t work with your version of PHP.' ); if ( current_user_can( 'update_php' ) ) { printf( - /* translators: %s: "Update PHP" page URL */ + /* translators: %s: URL to Update PHP page. */ ' ' . __( 'Learn more about updating PHP.' ), esc_url( wp_get_update_php_url() ) ); @@ -726,7 +726,7 @@ class WP_Plugin_Install_List_Table extends WP_List_Table {
' . sprintf(
- /* translators: %s: mu-plugins directory name */
+ /* translators: %s: mu-plugins directory name. */
__( 'Files in the %s directory are executed automatically.' ),
'' . str_replace( ABSPATH, '/', WPMU_PLUGIN_DIR ) . '
'
) . '
' . sprintf(
- /* translators: %s: wp-content directory name */
+ /* translators: %s: wp-content directory name. */
__( 'Drop-ins are single files, found in the %s directory, that replace or enhance WordPress features in ways that are not possible for traditional plugins.' ),
'' . str_replace( ABSPATH, '', WP_CONTENT_DIR ) . '
'
) . '
' . $dropins[ $plugin_file ][0] . ' ' . __( 'Inactive:' ) . ' ' .
sprintf(
- /* translators: 1: drop-in constant name, 2: wp-config.php */
+ /* translators: 1: Drop-in constant name, 2: wp-config.php */
__( 'Requires %1$s in %2$s file.' ),
"
review the guide and update your privacy policy.' ),
esc_url( admin_url( 'privacy-policy-guide.php' ) )
);
@@ -353,7 +353,7 @@ final class WP_Privacy_Policy_Content {
' %s %s',
$url,
$label,
- /* translators: accessibility text */
+ /* translators: Accessibility text. */
__( '(opens in a new tab)' )
);
?>
@@ -386,16 +386,16 @@ final class WP_Privacy_Policy_Content {
if ( ! empty( $section['removed'] ) ) {
$class = ' text-removed';
$date = date_i18n( $date_format, $section['removed'] );
- /* translators: %s: date of plugin deactivation */
+ /* translators: %s: Date of plugin deactivation. */
$meta = sprintf( __( 'Removed %s.' ), $date );
- /* translators: %s: date of plugin deactivation */
+ /* translators: %s: Date of plugin deactivation. */
$removed = __( 'You deactivated this plugin on %s and may no longer need this policy.' );
$removed = ' ' . sprintf( $removed, $date ) . ' ' . __( 'In this section you should note your site URL, as well as the name of the company, organization, or individual behind it, and some accurate contact information.' ) . ' ' . __( 'The amount of information you may be required to show will vary depending on your local or national business regulations. You may, for example, be required to display a physical address, a registered address, or your company registration number.' ) . ' ' . $suggested_text . sprintf( __( 'Our website address is: %s.' ), get_bloginfo( 'url', 'display' ) ) . ' ' . __( 'In this section you should note what personal data you collect from users and site visitors. This may include personal data, such as name, email address, personal account preferences; transactional data, such as purchase information; and technical data, such as information about cookies.' ) . ' ' . __( 'You should also note any collection and retention of sensitive personal data, such as data concerning health.' ) . ' ' . __( 'In addition to listing what personal data you collect, you need to note why you collect it. These explanations must note either the legal basis for your data collection and retention or the active consent the user has given.' ) . ' ' . __( 'Personal data is not just created by a user’s interactions with your site. Personal data is also generated from technical processes such as contact forms, comments, cookies, analytics, and third party embeds.' ) . ' ' . __( 'By default WordPress does not collect any personal data about visitors, and only collects the data shown on the User Profile screen from registered users. However some of your plugins may collect personal data. You should add the relevant information below.' ) . ' ' . __( 'In this subsection you should note what information is captured through comments. We have noted the data which WordPress collects by default.' ) . ' ' . $suggested_text . __( 'When visitors leave comments on the site we collect the data shown in the comments form, and also the visitor’s IP address and browser user agent string to help spam detection.' ) . ' ' . __( 'An anonymized string created from your email address (also called a hash) may be provided to the Gravatar service to see if you are using it. The Gravatar service privacy policy is available here: https://automattic.com/privacy/. After approval of your comment, your profile picture is visible to the public in the context of your comment.' ) . ' ' . __( 'In this subsection you should note what information may be disclosed by users who can upload media files. All uploaded files are usually publicly accessible.' ) . ' ' . $suggested_text . __( 'If you upload images to the website, you should avoid uploading images with embedded location data (EXIF GPS) included. Visitors to the website can download and extract any location data from images on the website.' ) . ' ' . __( 'By default, WordPress does not include a contact form. If you use a contact form plugin, use this subsection to note what personal data is captured when someone submits a contact form, and how long you keep it. For example, you may note that you keep contact form submissions for a certain period for customer service purposes, but you do not use the information submitted through them for marketing purposes.' ) . ' ' . __( 'In this subsection you should list the cookies your web site uses, including those set by your plugins, social media, and analytics. We have provided the cookies which WordPress installs by default.' ) . ' ' . $suggested_text . __( 'If you leave a comment on our site you may opt-in to saving your name, email address and website in cookies. These are for your convenience so that you do not have to fill in your details again when you leave another comment. These cookies will last for one year.' ) . ' ' . __( 'If you visit our login page, we will set a temporary cookie to determine if your browser accepts cookies. This cookie contains no personal data and is discarded when you close your browser.' ) . ' ' . __( 'When you log in, we will also set up several cookies to save your login information and your screen display choices. Login cookies last for two days, and screen options cookies last for a year. If you select "Remember Me", your login will persist for two weeks. If you log out of your account, the login cookies will be removed.' ) . ' ' . __( 'If you edit or publish an article, an additional cookie will be saved in your browser. This cookie includes no personal data and simply indicates the post ID of the article you just edited. It expires after 1 day.' ) . ' ' . $suggested_text . __( 'Articles on this site may include embedded content (e.g. videos, images, articles, etc.). Embedded content from other websites behaves in the exact same way as if the visitor has visited the other website.' ) . ' ' . __( 'These websites may collect data about you, use cookies, embed additional third-party tracking, and monitor your interaction with that embedded content, including tracking your interaction with the embedded content if you have an account and are logged in to that website.' ) . ' ' . __( 'In this subsection you should note what analytics package you use, how users can opt out of analytics tracking, and a link to your analytics provider’s privacy policy, if any.' ) . ' ' . __( 'By default WordPress does not collect any analytics data. However, many web hosting accounts collect some anonymous analytics data. You may also have installed a WordPress plugin that provides analytics services. In that case, add information from that plugin here.' ) . ' ' . __( 'In this section you should name and list all third party providers with whom you share site data, including partners, cloud-based services, payment processors, and third party service providers, and note what data you share with them and why. Link to their own privacy policies if possible.' ) . ' ' . __( 'By default WordPress does not share any personal data with anyone.' ) . ' ' . __( 'In this section you should explain how long you retain personal data collected or processed by the web site. While it is your responsibility to come up with the schedule of how long you keep each dataset for and why you keep it, that information does need to be listed here. For example, you may want to say that you keep contact form entries for six months, analytics records for a year, and customer purchase records for ten years.' ) . ' ' . $suggested_text . __( 'If you leave a comment, the comment and its metadata are retained indefinitely. This is so we can recognize and approve any follow-up comments automatically instead of holding them in a moderation queue.' ) . ' ' . __( 'For users that register on our website (if any), we also store the personal information they provide in their user profile. All users can see, edit, or delete their personal information at any time (except they cannot change their username). Website administrators can also see and edit that information.' ) . ' ' . __( 'In this section you should explain what rights your users have over their data and how they can invoke those rights.' ) . ' ' . $suggested_text . __( 'If you have an account on this site, or have left comments, you can request to receive an exported file of the personal data we hold about you, including any data you have provided to us. You can also request that we erase any personal data we hold about you. This does not include any data we are obliged to keep for administrative, legal, or security purposes.' ) . ' ' . __( 'In this section you should list all transfers of your site data outside the European Union and describe the means by which that data is safeguarded to European data protection standards. This could include your web hosting, cloud storage, or other third party services.' ) . ' ' . __( 'European data protection law requires data about European residents which is transferred outside the European Union to be safeguarded to the same standards as if the data was in Europe. So in addition to listing where data goes, you should describe how you ensure that these standards are met either by yourself or by your third party providers, whether that is through an agreement such as Privacy Shield, model clauses in your contracts, or binding corporate rules.' ) . ' ' . $suggested_text . __( 'Visitor comments may be checked through an automated spam detection service.' ) . ' ' . __( 'In this section you should provide a contact method for privacy-specific concerns. If you are required to have a Data Protection Officer, list their name and full contact details here as well.' ) . ' ' . __( 'If you use your site for commercial purposes and you engage in more complex collection or processing of personal data, you should note the following information in your privacy policy in addition to the information we have already discussed.' ) . ' ' . __( 'In this section you should explain what measures you have taken to protect your users’ data. This could include technical measures such as encryption; security measures such as two factor authentication; and measures such as staff training in data protection. If you have carried out a Privacy Impact Assessment, you can mention it here too.' ) . ' ' . __( 'In this section you should explain what procedures you have in place to deal with data breaches, either potential or real, such as internal reporting systems, contact mechanisms, or bug bounties.' ) . ' ' . __( 'If your web site receives data about users from third parties, including advertisers, this information must be included within the section of your privacy policy dealing with third party data.' ) . ' ' . __( 'If your web site provides a service which includes automated decision making - for example, allowing customers to apply for credit, or aggregating their data into an advertising profile - you must note that this is taking place, and include information about how that information is used, what decisions are made with that aggregated data, and what rights users have over decisions made without human intervention.' ) . ' ' . __( 'If you are a member of a regulated industry, or if you are subject to additional privacy laws, you may be required to disclose that information here.' ) . ' %s %s ' . __( 'This child theme requires its parent theme, %2$s.' ) . 'define('" . $dropins[ $plugin_file ][1] . "', true);
",
'wp-config.php
'
@@ -674,17 +674,32 @@ class WP_Plugins_List_Table extends WP_List_Table {
if ( $screen->in_admin( 'network' ) ) {
if ( $is_active ) {
if ( current_user_can( 'manage_network_plugins' ) ) {
- /* translators: %s: plugin name */
- $actions['deactivate'] = '' . __( 'Network Deactivate' ) . '';
+ $actions['deactivate'] = sprintf(
+ '%s',
+ wp_nonce_url( 'plugins.php?action=deactivate&plugin=' . urlencode( $plugin_file ) . '&plugin_status=' . $context . '&paged=' . $page . '&s=' . $s, 'deactivate-plugin_' . $plugin_file ),
+ /* translators: %s: Plugin name. */
+ esc_attr( sprintf( _x( 'Network Deactivate %s', 'plugin' ), $plugin_data['Name'] ) ),
+ __( 'Network Deactivate' )
+ );
}
} else {
if ( current_user_can( 'manage_network_plugins' ) ) {
- /* translators: %s: plugin name */
- $actions['activate'] = '' . __( 'Network Activate' ) . '';
+ $actions['activate'] = sprintf(
+ '%s',
+ wp_nonce_url( 'plugins.php?action=activate&plugin=' . urlencode( $plugin_file ) . '&plugin_status=' . $context . '&paged=' . $page . '&s=' . $s, 'activate-plugin_' . $plugin_file ),
+ /* translators: %s: Plugin name. */
+ esc_attr( sprintf( _x( 'Network Activate %s', 'plugin' ), $plugin_data['Name'] ) ),
+ __( 'Network Activate' )
+ );
}
if ( current_user_can( 'delete_plugins' ) && ! is_plugin_active( $plugin_file ) ) {
- /* translators: %s: plugin name */
- $actions['delete'] = '' . __( 'Delete' ) . '';
+ $actions['delete'] = sprintf(
+ '%s',
+ wp_nonce_url( 'plugins.php?action=delete-selected&checked[]=' . urlencode( $plugin_file ) . '&plugin_status=' . $context . '&paged=' . $page . '&s=' . $s, 'bulk-plugins' ),
+ /* translators: %s: Plugin name. */
+ esc_attr( sprintf( _x( 'Delete %s', 'plugin' ), $plugin_data['Name'] ) ),
+ __( 'Delete' )
+ );
}
}
} else {
@@ -698,22 +713,42 @@ class WP_Plugins_List_Table extends WP_List_Table {
);
} elseif ( $is_active ) {
if ( current_user_can( 'deactivate_plugin', $plugin_file ) ) {
- /* translators: %s: plugin name */
- $actions['deactivate'] = '' . __( 'Deactivate' ) . '';
+ $actions['deactivate'] = sprintf(
+ '%s',
+ wp_nonce_url( 'plugins.php?action=deactivate&plugin=' . urlencode( $plugin_file ) . '&plugin_status=' . $context . '&paged=' . $page . '&s=' . $s, 'deactivate-plugin_' . $plugin_file ),
+ /* translators: %s: Plugin name. */
+ esc_attr( sprintf( _x( 'Deactivate %s', 'plugin' ), $plugin_data['Name'] ) ),
+ __( 'Deactivate' )
+ );
}
if ( current_user_can( 'resume_plugin', $plugin_file ) && is_plugin_paused( $plugin_file ) ) {
- /* translators: %s: plugin name */
- $actions['resume'] = '' . __( 'Resume' ) . '';
+ $actions['resume'] = sprintf(
+ '%s',
+ wp_nonce_url( 'plugins.php?action=resume&plugin=' . urlencode( $plugin_file ) . '&plugin_status=' . $context . '&paged=' . $page . '&s=' . $s, 'resume-plugin_' . $plugin_file ),
+ /* translators: %s: Plugin name. */
+ esc_attr( sprintf( _x( 'Resume %s', 'plugin' ), $plugin_data['Name'] ) ),
+ __( 'Resume' )
+ );
}
} else {
if ( current_user_can( 'activate_plugin', $plugin_file ) ) {
- /* translators: %s: plugin name */
- $actions['activate'] = '' . __( 'Activate' ) . '';
+ $actions['activate'] = sprintf(
+ '%s',
+ wp_nonce_url( 'plugins.php?action=activate&plugin=' . urlencode( $plugin_file ) . '&plugin_status=' . $context . '&paged=' . $page . '&s=' . $s, 'activate-plugin_' . $plugin_file ),
+ /* translators: %s: Plugin name. */
+ esc_attr( sprintf( _x( 'Activate %s', 'plugin' ), $plugin_data['Name'] ) ),
+ __( 'Activate' )
+ );
}
if ( ! is_multisite() && current_user_can( 'delete_plugins' ) ) {
- /* translators: %s: plugin name */
- $actions['delete'] = '' . __( 'Delete' ) . '';
+ $actions['delete'] = sprintf(
+ '%s',
+ wp_nonce_url( 'plugins.php?action=delete-selected&checked[]=' . urlencode( $plugin_file ) . '&plugin_status=' . $context . '&paged=' . $page . '&s=' . $s, 'bulk-plugins' ),
+ /* translators: %s: Plugin name. */
+ esc_attr( sprintf( _x( 'Delete %s', 'plugin' ), $plugin_data['Name'] ) ),
+ __( 'Delete' )
+ );
}
} // end if $is_active
} // end if $screen->in_admin( 'network' )
@@ -805,7 +840,7 @@ class WP_Plugins_List_Table extends WP_List_Table {
'' .
'',
$checkbox_id,
- /* translators: %s: plugin name */
+ /* translators: %s: Plugin name. */
sprintf( __( 'Select %s' ), $plugin_data['Name'] ),
esc_attr( $plugin_file )
);
@@ -859,7 +894,7 @@ class WP_Plugins_List_Table extends WP_List_Table {
$plugin_meta = array();
if ( ! empty( $plugin_data['Version'] ) ) {
- /* translators: %s: plugin version number */
+ /* translators: %s: Plugin version number. */
$plugin_meta[] = sprintf( __( 'Version %s' ), $plugin_data['Version'] );
}
if ( ! empty( $plugin_data['Author'] ) ) {
@@ -867,7 +902,7 @@ class WP_Plugins_List_Table extends WP_List_Table {
if ( ! empty( $plugin_data['AuthorURI'] ) ) {
$author = '' . $plugin_data['Author'] . '';
}
- /* translators: %s: plugin version number */
+ /* translators: %s: Plugin version number. */
$plugin_meta[] = sprintf( __( 'By %s' ), $author );
}
@@ -881,7 +916,7 @@ class WP_Plugins_List_Table extends WP_List_Table {
'&TB_iframe=true&width=600&height=550'
)
),
- /* translators: %s: plugin name */
+ /* translators: %s: Plugin name. */
esc_attr( sprintf( __( 'More information about %s' ), $plugin_name ) ),
esc_attr( $plugin_name ),
__( 'View details' )
diff --git a/wp-admin/includes/class-wp-posts-list-table.php b/wp-admin/includes/class-wp-posts-list-table.php
index b0346ddaaa..71c77d877a 100644
--- a/wp-admin/includes/class-wp-posts-list-table.php
+++ b/wp-admin/includes/class-wp-posts-list-table.php
@@ -305,7 +305,7 @@ class WP_Posts_List_Table extends WP_List_Table {
);
$mine_inner_html = sprintf(
- /* translators: %s: number of posts */
+ /* translators: %s: Number of posts. */
_nx(
'Mine (%s)',
'Mine (%s)',
@@ -326,7 +326,7 @@ class WP_Posts_List_Table extends WP_List_Table {
}
$all_inner_html = sprintf(
- /* translators: %s: number of posts */
+ /* translators: %s: Number of posts. */
_nx(
'All (%s)',
'All (%s)',
@@ -376,7 +376,7 @@ class WP_Posts_List_Table extends WP_List_Table {
);
$sticky_inner_html = sprintf(
- /* translators: %s: number of posts */
+ /* translators: %s: Number of posts. */
_nx(
'Sticky (%s)',
'Sticky (%s)',
@@ -607,7 +607,7 @@ class WP_Posts_List_Table extends WP_List_Table {
$posts_columns['cb'] = '';
- /* translators: manage posts column name */
+ /* translators: Posts screen column name. */
$posts_columns['title'] = _x( 'Title', 'column name' );
if ( post_type_supports( $post_type, 'author' ) ) {
@@ -921,7 +921,7 @@ class WP_Posts_List_Table extends WP_List_Table {
?>
@@ -931,7 +931,7 @@ class WP_Posts_List_Table extends WP_List_Table {
ID, 18 );
- /* translators: %s: user's display name */
+ /* translators: %s: User's display name. */
$locked_text = esc_html( sprintf( __( '%s is currently editing' ), $lock_holder->display_name ) );
} else {
$locked_avatar = '';
@@ -1018,7 +1018,7 @@ class WP_Posts_List_Table extends WP_List_Table {
printf(
'%s%s',
get_edit_post_link( $post->ID ),
- /* translators: %s: post title */
+ /* translators: %s: Post title. */
esc_attr( sprintf( __( '“%s” (Edit)' ), $title ) ),
$pad,
$title
@@ -1073,7 +1073,7 @@ class WP_Posts_List_Table extends WP_List_Table {
$time_diff = time() - $time;
if ( $time_diff > 0 && $time_diff < DAY_IN_SECONDS ) {
- /* translators: %s: Human-readable time difference */
+ /* translators: %s: Human-readable time difference. */
$h_time = sprintf( __( '%s ago' ), human_time_diff( $time ) );
} else {
$h_time = mysql2date( __( 'Y/m/d' ), $m_time );
@@ -1216,7 +1216,7 @@ class WP_Posts_List_Table extends WP_List_Table {
*/
$term_links = apply_filters( 'post_column_taxonomy_links', $term_links, $taxonomy, $terms );
- /* translators: used between list items, there is a space after the comma */
+ /* translators: Used between list items, there is a space after the comma. */
echo join( __( ', ' ), $term_links );
} else {
echo '—' . $taxonomy_object->labels->no_terms . '';
@@ -1338,7 +1338,7 @@ class WP_Posts_List_Table extends WP_List_Table {
$actions['edit'] = sprintf(
'%s',
get_edit_post_link( $post->ID ),
- /* translators: %s: post title */
+ /* translators: %s: Post title. */
esc_attr( sprintf( __( 'Edit “%s”' ), $title ) ),
__( 'Edit' )
);
@@ -1346,7 +1346,7 @@ class WP_Posts_List_Table extends WP_List_Table {
if ( 'wp_block' !== $post->post_type ) {
$actions['inline hide-if-no-js'] = sprintf(
'',
- /* translators: %s: post title */
+ /* translators: %s: Post title. */
esc_attr( sprintf( __( 'Quick edit “%s” inline' ), $title ) ),
__( 'Quick Edit' )
);
@@ -1358,7 +1358,7 @@ class WP_Posts_List_Table extends WP_List_Table {
$actions['untrash'] = sprintf(
'%s',
wp_nonce_url( admin_url( sprintf( $post_type_object->_edit_link . '&action=untrash', $post->ID ) ), 'untrash-post_' . $post->ID ),
- /* translators: %s: post title */
+ /* translators: %s: Post title. */
esc_attr( sprintf( __( 'Restore “%s” from the Trash' ), $title ) ),
__( 'Restore' )
);
@@ -1366,7 +1366,7 @@ class WP_Posts_List_Table extends WP_List_Table {
$actions['trash'] = sprintf(
'%s',
get_delete_post_link( $post->ID ),
- /* translators: %s: post title */
+ /* translators: %s: Post title. */
esc_attr( sprintf( __( 'Move “%s” to the Trash' ), $title ) ),
_x( 'Trash', 'verb' )
);
@@ -1375,7 +1375,7 @@ class WP_Posts_List_Table extends WP_List_Table {
$actions['delete'] = sprintf(
'%s',
get_delete_post_link( $post->ID, '', true ),
- /* translators: %s: post title */
+ /* translators: %s: Post title. */
esc_attr( sprintf( __( 'Delete “%s” permanently' ), $title ) ),
__( 'Delete Permanently' )
);
@@ -1389,7 +1389,7 @@ class WP_Posts_List_Table extends WP_List_Table {
$actions['view'] = sprintf(
'%s',
esc_url( $preview_link ),
- /* translators: %s: post title */
+ /* translators: %s: Post title. */
esc_attr( sprintf( __( 'Preview “%s”' ), $title ) ),
__( 'Preview' )
);
@@ -1398,7 +1398,7 @@ class WP_Posts_List_Table extends WP_List_Table {
$actions['view'] = sprintf(
'%s',
get_permalink( $post->ID ),
- /* translators: %s: post title */
+ /* translators: %s: Post title. */
esc_attr( sprintf( __( 'View “%s”' ), $title ) ),
__( 'View' )
);
@@ -1409,7 +1409,7 @@ class WP_Posts_List_Table extends WP_List_Table {
$actions['export'] = sprintf(
'',
$post->ID,
- /* translators: %s: post title */
+ /* translators: %s: Post title. */
esc_attr( sprintf( __( 'Export “%s” as JSON' ), $title ) ),
__( 'Export as JSON' )
);
@@ -1610,7 +1610,7 @@ class WP_Posts_List_Table extends WP_List_Table {
diff --git a/wp-admin/includes/class-wp-privacy-policy-content.php b/wp-admin/includes/class-wp-privacy-policy-content.php
index 723986e99f..5ce9bdfbd6 100644
--- a/wp-admin/includes/class-wp-privacy-policy-content.php
+++ b/wp-admin/includes/class-wp-privacy-policy-content.php
@@ -140,7 +140,7 @@ final class WP_Privacy_Policy_Content {
' . sprintf( __( 'Source: %s' ), $plugin_name ) . '
';
$content .= $removed;
@@ -421,7 +421,7 @@ final class WP_Privacy_Policy_Content {
$content .= '';
@@ -481,201 +481,201 @@ final class WP_Privacy_Policy_Content {
$strings[] = '' . __( 'Who we are' ) . '
';
if ( $description ) {
- /* translators: privacy policy tutorial. */
+ /* translators: Privacy policy tutorial. */
$strings[] = '' . __( 'What personal data we collect and why we collect it' ) . '
';
if ( $description ) {
- /* translators: privacy policy tutorial. */
+ /* translators: Privacy policy tutorial. */
$strings[] = '' . __( 'Comments' ) . '
';
if ( $description ) {
- /* translators: privacy policy tutorial. */
+ /* translators: Privacy policy tutorial. */
$strings[] = '' . __( 'Media' ) . '
';
if ( $description ) {
- /* translators: privacy policy tutorial. */
+ /* translators: Privacy policy tutorial. */
$strings[] = '' . __( 'Contact forms' ) . '
';
if ( $description ) {
- /* translators: privacy policy tutorial. */
+ /* translators: Privacy policy tutorial. */
$strings[] = '' . __( 'Cookies' ) . '
';
if ( $description ) {
- /* translators: privacy policy tutorial. */
+ /* translators: Privacy policy tutorial. */
$strings[] = '' . __( 'Embedded content from other websites' ) . '
';
- /* translators: default privacy policy text. */
+ /* translators: Default privacy policy text. */
$strings[] = '' . __( 'Analytics' ) . '
';
if ( $description ) {
- /* translators: privacy policy tutorial. */
+ /* translators: Privacy policy tutorial. */
$strings[] = '' . __( 'Who we share your data with' ) . '
';
if ( $description ) {
- /* translators: privacy policy tutorial. */
+ /* translators: Privacy policy tutorial. */
$strings[] = '' . __( 'How long we retain your data' ) . '
';
if ( $description ) {
- /* translators: privacy policy tutorial. */
+ /* translators: Privacy policy tutorial. */
$strings[] = '' . __( 'What rights you have over your data' ) . '
';
if ( $description ) {
- /* translators: privacy policy tutorial. */
+ /* translators: Privacy policy tutorial. */
$strings[] = '' . __( 'Where we send your data' ) . '
';
if ( $description ) {
- /* translators: privacy policy tutorial. */
+ /* translators: Privacy policy tutorial. */
$strings[] = '' . __( 'Your contact information' ) . '
';
if ( $description ) {
- /* translators: privacy policy tutorial. */
+ /* translators: Privacy policy tutorial. */
$strings[] = '' . __( 'Additional information' ) . '
';
if ( $description ) {
- /* translators: privacy policy tutorial. */
+ /* translators: Privacy policy tutorial. */
$strings[] = '' . __( 'How we protect your data' ) . '
';
if ( $description ) {
- /* translators: privacy policy tutorial. */
+ /* translators: Privacy policy tutorial. */
$strings[] = '' . __( 'What data breach procedures we have in place' ) . '
';
if ( $description ) {
- /* translators: privacy policy tutorial. */
+ /* translators: Privacy policy tutorial. */
$strings[] = '' . __( 'What third parties we receive data from' ) . '
';
if ( $description ) {
- /* translators: privacy policy tutorial. */
+ /* translators: Privacy policy tutorial. */
$strings[] = '' . __( 'What automated decision making and/or profiling we do with user data' ) . '
';
if ( $description ) {
- /* translators: privacy policy tutorial. */
+ /* translators: Privacy policy tutorial. */
$strings[] = '' . __( 'Industry regulatory disclosure requirements' ) . '
';
if ( $description ) {
- /* translators: privacy policy tutorial. */
+ /* translators: Privacy policy tutorial. */
$strings[] = '' . $check_dir . '
',
"$vcs_dir
",
@@ -257,7 +257,7 @@ class WP_Site_Health_Auto_Updates {
if ( $checkout ) {
return array(
'description' => sprintf(
- // translators: 1: Folder name. 2: Version control directory.
+ /* translators: 1: Folder name. 2: Version control directory. */
__( 'The folder %1$s was detected as being under version control (%2$s).' ),
'' . $check_dir . '
',
"$vcs_dir
"
@@ -340,7 +340,7 @@ class WP_Site_Health_Auto_Updates {
if ( ! $checksums ) {
$description = sprintf(
- // translators: %s: WordPress version
+ /* translators: %s: WordPress version. */
__( "Couldn't retrieve a list of the checksums for WordPress %s." ),
$wp_version
);
diff --git a/wp-admin/includes/class-wp-site-health.php b/wp-admin/includes/class-wp-site-health.php
index c759effd83..8ced4646bb 100644
--- a/wp-admin/includes/class-wp-site-health.php
+++ b/wp-admin/includes/class-wp-site-health.php
@@ -204,7 +204,7 @@ class WP_Site_Health {
$result['status'] = 'recommended';
$result['label'] = sprintf(
- // translators: %s: Your current version of WordPress.
+ /* translators: %s: Your current version of WordPress. */
__( 'WordPress version %s' ),
$core_current_version
);
@@ -229,7 +229,7 @@ class WP_Site_Health {
$new_major = $new_version[0] . '.' . $new_version[1];
$result['label'] = sprintf(
- // translators: %s: The latest version of WordPress available.
+ /* translators: %s: The latest version of WordPress available. */
__( 'WordPress update available (%s)' ),
$update->version
);
@@ -259,7 +259,7 @@ class WP_Site_Health {
} else {
$result['status'] = 'good';
$result['label'] = sprintf(
- // translators: %s: The current version of WordPress installed on this site.
+ /* translators: %s: The current version of WordPress installed on this site. */
__( 'Your WordPress version is up to date (%s)' ),
$core_current_version
);
@@ -653,7 +653,7 @@ class WP_Site_Health {
$result = array(
'label' => sprintf(
- // translators: %s: The current PHP version.
+ /* translators: %s: The current PHP version. */
__( 'PHP is up to date (%s)' ),
PHP_VERSION
),
@@ -670,7 +670,7 @@ class WP_Site_Health {
'',
esc_url( wp_get_update_php_url() ),
__( 'Learn more about updating PHP' ),
- /* translators: accessibility text */
+ /* translators: Accessibility text. */
__( '(opens in a new tab)' )
),
'test' => 'php_version',
@@ -762,7 +762,7 @@ class WP_Site_Health {
'target="_blank" rel="noopener noreferrer"',
sprintf(
' %s',
- /* translators: accessibility text */
+ /* translators: Accessibility text. */
__( '(opens in a new tab)' )
)
)
@@ -962,7 +962,7 @@ class WP_Site_Health {
/* translators: Localized version of WordPress requirements if one exists. */
esc_url( __( 'https://wordpress.org/about/requirements/' ) ),
__( 'Learn more about what WordPress requires to run.' ),
- /* translators: accessibility text */
+ /* translators: Accessibility text. */
__( '(opens in a new tab)' )
),
'test' => 'sql_server',
@@ -1195,7 +1195,7 @@ class WP_Site_Health {
/* translators: Localized Support reference. */
esc_url( __( 'https://wordpress.org/support' ) ),
__( 'Get help resolving this issue.' ),
- /* translators: accessibility text */
+ /* translators: Accessibility text. */
__( '(opens in a new tab)' )
);
}
@@ -1233,7 +1233,7 @@ class WP_Site_Health {
/* translators: Documentation explaining debugging in WordPress. */
esc_url( __( 'https://wordpress.org/support/article/debugging-in-wordpress/' ) ),
__( 'Learn more about debugging in WordPress.' ),
- /* translators: accessibility text */
+ /* translators: Accessibility text. */
__( '(opens in a new tab)' )
),
'test' => 'is_in_debug_mode',
@@ -1302,7 +1302,7 @@ class WP_Site_Health {
/* translators: Documentation explaining HTTPS and why it should be used. */
esc_url( __( 'https://wordpress.org/support/article/why-should-i-use-https/' ) ),
__( 'Learn more about why you should use HTTPS' ),
- /* translators: accessibility text */
+ /* translators: Accessibility text. */
__( '(opens in a new tab)' )
),
'test' => 'https_status',
@@ -1320,7 +1320,7 @@ class WP_Site_Health {
$result['description'] = sprintf(
'context
'
)
@@ -2017,7 +2017,7 @@ class WP_Site_Health {
'%s
%s',
__( 'The loopback request to your site failed, this means features relying on them are not currently working as expected.' ),
sprintf(
- // translators: 1: The HTTP response code. 2: The error message returned.
+ /* translators: 1: The HTTP response code. 2: The error message returned. */
__( 'Error: [%1$s] %2$s' ),
wp_remote_retrieve_response_code( $r ),
$r->get_error_message()
@@ -2030,7 +2030,7 @@ class WP_Site_Health {
return (object) array(
'status' => 'recommended',
'message' => sprintf(
- // translators: %d: The HTTP response code returned.
+ /* translators: %d: The HTTP response code returned. */
__( 'The loopback request returned an unexpected http status code, %d, it was not possible to determine if this will prevent features from working as expected.' ),
wp_remote_retrieve_response_code( $r )
),
diff --git a/wp-admin/includes/class-wp-terms-list-table.php b/wp-admin/includes/class-wp-terms-list-table.php
index 84e9682005..33ef9fa8d6 100644
--- a/wp-admin/includes/class-wp-terms-list-table.php
+++ b/wp-admin/includes/class-wp-terms-list-table.php
@@ -359,7 +359,7 @@ class WP_Terms_List_Table extends WP_List_Table {
'' .
'',
$tag->term_id,
- /* translators: %s: term name */
+ /* translators: %s: Taxonomy term name. */
sprintf( __( 'Select %s' ), $tag->name )
);
}
@@ -406,7 +406,7 @@ class WP_Terms_List_Table extends WP_List_Table {
$name = sprintf(
'%s',
esc_url( $edit_link ),
- /* translators: %s: taxonomy term name */
+ /* translators: %s: Taxonomy term name. */
esc_attr( sprintf( __( '“%s” (Edit)' ), $tag->name ) ),
$name
);
@@ -468,13 +468,13 @@ class WP_Terms_List_Table extends WP_List_Table {
$actions['edit'] = sprintf(
'%s',
esc_url( $edit_link ),
- /* translators: %s: taxonomy term name */
+ /* translators: %s: Taxonomy term name. */
esc_attr( sprintf( __( 'Edit “%s”' ), $tag->name ) ),
__( 'Edit' )
);
$actions['inline hide-if-no-js'] = sprintf(
'',
- /* translators: %s: taxonomy term name */
+ /* translators: %s: Taxonomy term name. */
esc_attr( sprintf( __( 'Quick edit “%s” inline' ), $tag->name ) ),
__( 'Quick Edit' )
);
@@ -483,7 +483,7 @@ class WP_Terms_List_Table extends WP_List_Table {
$actions['delete'] = sprintf(
'%s',
wp_nonce_url( "edit-tags.php?action=delete&taxonomy=$taxonomy&tag_ID=$tag->term_id", 'delete-tag_' . $tag->term_id ),
- /* translators: %s: taxonomy term name */
+ /* translators: %s: Taxonomy term name. */
esc_attr( sprintf( __( 'Delete “%s”' ), $tag->name ) ),
__( 'Delete' )
);
@@ -492,7 +492,7 @@ class WP_Terms_List_Table extends WP_List_Table {
$actions['view'] = sprintf(
'%s',
get_term_link( $tag ),
- /* translators: %s: taxonomy term name */
+ /* translators: %s: Taxonomy term name. */
esc_attr( sprintf( __( 'View “%s” archive' ), $tag->name ) ),
__( 'View' )
);
diff --git a/wp-admin/includes/class-wp-theme-install-list-table.php b/wp-admin/includes/class-wp-theme-install-list-table.php
index 4e0a9deffc..abf80d2fcc 100644
--- a/wp-admin/includes/class-wp-theme-install-list-table.php
+++ b/wp-admin/includes/class-wp-theme-install-list-table.php
@@ -264,7 +264,7 @@ class WP_Theme_Install_List_Table extends WP_Themes_List_Table {
$name = wp_kses( $theme->name, $themes_allowedtags );
$author = wp_kses( $theme->author, $themes_allowedtags );
- /* translators: %s: theme name */
+ /* translators: %s: Theme name. */
$preview_title = sprintf( __( 'Preview “%s”' ), $name );
$preview_url = add_query_arg(
array(
@@ -299,7 +299,7 @@ class WP_Theme_Install_List_Table extends WP_Themes_List_Table {
$actions[] = sprintf(
'%s',
esc_url( wp_nonce_url( $update_url, 'upgrade-theme_' . $theme->slug ) ),
- /* translators: %s: theme version */
+ /* translators: %s: Theme version. */
esc_attr( sprintf( __( 'Update to version %s' ), $theme->version ) ),
__( 'Update' )
);
@@ -317,7 +317,7 @@ class WP_Theme_Install_List_Table extends WP_Themes_List_Table {
$actions[] = sprintf(
'%s',
esc_url( wp_nonce_url( $install_url, 'install-theme_' . $theme->slug ) ),
- /* translators: %s: theme name */
+ /* translators: %s: Theme name. */
esc_attr( sprintf( __( 'Install %s' ), $name ) ),
__( 'Install Now' )
);
@@ -327,7 +327,7 @@ class WP_Theme_Install_List_Table extends WP_Themes_List_Table {
$actions[] = sprintf(
'%s',
esc_url( $preview_url ),
- /* translators: %s: theme name */
+ /* translators: %s: Theme name. */
esc_attr( sprintf( __( 'Preview %s' ), $name ) ),
__( 'Preview' )
);
@@ -351,7 +351,7 @@ class WP_Theme_Install_List_Table extends WP_Themes_List_Table {