I18N: Add missing context for 'Trash' strings.
Fixes #35054. git-svn-id: https://develop.svn.wordpress.org/trunk@35901 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
f5d2251f50
commit
3068a5b333
|
@ -127,7 +127,7 @@ class WP_Media_List_Table extends WP_List_Table {
|
||||||
$type_links['trash'] = sprintf(
|
$type_links['trash'] = sprintf(
|
||||||
'<option value="trash"%s>%s</option>',
|
'<option value="trash"%s>%s</option>',
|
||||||
selected( 'trash' === $filter, true, false ),
|
selected( 'trash' === $filter, true, false ),
|
||||||
__( 'Trash' )
|
_x( 'Trash', 'attachment filter' )
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
return $type_links;
|
return $type_links;
|
||||||
|
@ -144,7 +144,7 @@ class WP_Media_List_Table extends WP_List_Table {
|
||||||
$actions['untrash'] = __( 'Restore' );
|
$actions['untrash'] = __( 'Restore' );
|
||||||
$actions['delete'] = __( 'Delete Permanently' );
|
$actions['delete'] = __( 'Delete Permanently' );
|
||||||
} else {
|
} else {
|
||||||
$actions['trash'] = __( 'Trash' );
|
$actions['trash'] = _x( 'Trash', 'verb' );
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$actions['delete'] = __( 'Delete Permanently' );
|
$actions['delete'] = __( 'Delete Permanently' );
|
||||||
|
@ -636,7 +636,7 @@ class WP_Media_List_Table extends WP_List_Table {
|
||||||
$actions['edit'] = '<a href="' . get_edit_post_link( $post->ID ) . '">' . __( 'Edit' ) . '</a>';
|
$actions['edit'] = '<a href="' . get_edit_post_link( $post->ID ) . '">' . __( 'Edit' ) . '</a>';
|
||||||
if ( current_user_can( 'delete_post', $post->ID ) )
|
if ( current_user_can( 'delete_post', $post->ID ) )
|
||||||
if ( EMPTY_TRASH_DAYS && MEDIA_TRASH ) {
|
if ( EMPTY_TRASH_DAYS && MEDIA_TRASH ) {
|
||||||
$actions['trash'] = "<a class='submitdelete' href='" . wp_nonce_url( "post.php?action=trash&post=$post->ID", 'trash-post_' . $post->ID ) . "'>" . __( 'Trash' ) . "</a>";
|
$actions['trash'] = "<a class='submitdelete' href='" . wp_nonce_url( "post.php?action=trash&post=$post->ID", 'trash-post_' . $post->ID ) . "'>" . _x( 'Trash', 'verb' ) . "</a>";
|
||||||
} else {
|
} else {
|
||||||
$delete_ays = !MEDIA_TRASH ? " onclick='return showNotice.warn();'" : '';
|
$delete_ays = !MEDIA_TRASH ? " onclick='return showNotice.warn();'" : '';
|
||||||
$actions['delete'] = "<a class='submitdelete'$delete_ays href='" . wp_nonce_url( "post.php?action=delete&post=$post->ID", 'delete-post_' . $post->ID ) . "'>" . __( 'Delete Permanently' ) . "</a>";
|
$actions['delete'] = "<a class='submitdelete'$delete_ays href='" . wp_nonce_url( "post.php?action=delete&post=$post->ID", 'delete-post_' . $post->ID ) . "'>" . __( 'Delete Permanently' ) . "</a>";
|
||||||
|
@ -652,7 +652,7 @@ class WP_Media_List_Table extends WP_List_Table {
|
||||||
if ( $this->is_trash )
|
if ( $this->is_trash )
|
||||||
$actions['untrash'] = "<a class='submitdelete' href='" . wp_nonce_url( "post.php?action=untrash&post=$post->ID", 'untrash-post_' . $post->ID ) . "'>" . __( 'Restore' ) . "</a>";
|
$actions['untrash'] = "<a class='submitdelete' href='" . wp_nonce_url( "post.php?action=untrash&post=$post->ID", 'untrash-post_' . $post->ID ) . "'>" . __( 'Restore' ) . "</a>";
|
||||||
elseif ( EMPTY_TRASH_DAYS && MEDIA_TRASH )
|
elseif ( EMPTY_TRASH_DAYS && MEDIA_TRASH )
|
||||||
$actions['trash'] = "<a class='submitdelete' href='" . wp_nonce_url( "post.php?action=trash&post=$post->ID", 'trash-post_' . $post->ID ) . "'>" . __( 'Trash' ) . "</a>";
|
$actions['trash'] = "<a class='submitdelete' href='" . wp_nonce_url( "post.php?action=trash&post=$post->ID", 'trash-post_' . $post->ID ) . "'>" . _x( 'Trash', 'verb' ) . "</a>";
|
||||||
if ( $this->is_trash || !EMPTY_TRASH_DAYS || !MEDIA_TRASH ) {
|
if ( $this->is_trash || !EMPTY_TRASH_DAYS || !MEDIA_TRASH ) {
|
||||||
$delete_ays = ( !$this->is_trash && !MEDIA_TRASH ) ? " onclick='return showNotice.warn();'" : '';
|
$delete_ays = ( !$this->is_trash && !MEDIA_TRASH ) ? " onclick='return showNotice.warn();'" : '';
|
||||||
$actions['delete'] = "<a class='submitdelete'$delete_ays href='" . wp_nonce_url( "post.php?action=delete&post=$post->ID", 'delete-post_' . $post->ID ) . "'>" . __( 'Delete Permanently' ) . "</a>";
|
$actions['delete'] = "<a class='submitdelete'$delete_ays href='" . wp_nonce_url( "post.php?action=delete&post=$post->ID", 'delete-post_' . $post->ID ) . "'>" . __( 'Delete Permanently' ) . "</a>";
|
||||||
|
|
|
@ -1179,7 +1179,7 @@ class WP_Posts_List_Table extends WP_List_Table {
|
||||||
if ( 'trash' === $post->post_status )
|
if ( 'trash' === $post->post_status )
|
||||||
$actions['untrash'] = "<a title='" . esc_attr__( 'Restore this item from the Trash' ) . "' href='" . wp_nonce_url( admin_url( sprintf( $post_type_object->_edit_link . '&action=untrash', $post->ID ) ), 'untrash-post_' . $post->ID ) . "'>" . __( 'Restore' ) . "</a>";
|
$actions['untrash'] = "<a title='" . esc_attr__( 'Restore this item from the Trash' ) . "' href='" . wp_nonce_url( admin_url( sprintf( $post_type_object->_edit_link . '&action=untrash', $post->ID ) ), 'untrash-post_' . $post->ID ) . "'>" . __( 'Restore' ) . "</a>";
|
||||||
elseif ( EMPTY_TRASH_DAYS )
|
elseif ( EMPTY_TRASH_DAYS )
|
||||||
$actions['trash'] = "<a class='submitdelete' title='" . esc_attr__( 'Move this item to the Trash' ) . "' href='" . get_delete_post_link( $post->ID ) . "'>" . __( 'Trash' ) . "</a>";
|
$actions['trash'] = "<a class='submitdelete' title='" . esc_attr__( 'Move this item to the Trash' ) . "' href='" . get_delete_post_link( $post->ID ) . "'>" . _x( 'Trash', 'verb' ) . "</a>";
|
||||||
if ( 'trash' === $post->post_status || !EMPTY_TRASH_DAYS )
|
if ( 'trash' === $post->post_status || !EMPTY_TRASH_DAYS )
|
||||||
$actions['delete'] = "<a class='submitdelete' title='" . esc_attr__( 'Delete this item permanently' ) . "' href='" . get_delete_post_link( $post->ID, '', true ) . "'>" . __( 'Delete Permanently' ) . "</a>";
|
$actions['delete'] = "<a class='submitdelete' title='" . esc_attr__( 'Delete this item permanently' ) . "' href='" . get_delete_post_link( $post->ID, '', true ) . "'>" . __( 'Delete Permanently' ) . "</a>";
|
||||||
}
|
}
|
||||||
|
|
|
@ -334,7 +334,7 @@ function attachment_submit_meta_box( $post ) {
|
||||||
<?php
|
<?php
|
||||||
if ( current_user_can( 'delete_post', $post->ID ) )
|
if ( current_user_can( 'delete_post', $post->ID ) )
|
||||||
if ( EMPTY_TRASH_DAYS && MEDIA_TRASH ) {
|
if ( EMPTY_TRASH_DAYS && MEDIA_TRASH ) {
|
||||||
echo "<a class='submitdelete deletion' href='" . get_delete_post_link( $post->ID ) . "'>" . __( 'Trash' ) . "</a>";
|
echo "<a class='submitdelete deletion' href='" . get_delete_post_link( $post->ID ) . "'>" . _x( 'Trash', 'verb' ) . "</a>";
|
||||||
} else {
|
} else {
|
||||||
$delete_ays = ! MEDIA_TRASH ? " onclick='return showNotice.warn();'" : '';
|
$delete_ays = ! MEDIA_TRASH ? " onclick='return showNotice.warn();'" : '';
|
||||||
echo "<a class='submitdelete deletion'$delete_ays href='" . get_delete_post_link( $post->ID, null, true ) . "'>" . __( 'Delete Permanently' ) . "</a>";
|
echo "<a class='submitdelete deletion'$delete_ays href='" . get_delete_post_link( $post->ID, null, true ) . "'>" . __( 'Delete Permanently' ) . "</a>";
|
||||||
|
|
Loading…
Reference in New Issue