Ticket #36555: 36555.patch
File 36555.patch, 3.9 KB (added by , 9 years ago) |
---|
-
wp-admin/includes/class-wp-media-list-table.php
505 505 <?php if ( $user_can_edit ) { 506 506 $title = _draft_or_post_title( $post->post_parent ); 507 507 printf( 508 '<a href="#the-list" onclick="findPosts.open( \'media[]\', \'%s\' ); return false;" class="hide-if-no-js " aria-label="%s">%s</a>',508 '<a href="#the-list" onclick="findPosts.open( \'media[]\', \'%s\' ); return false;" class="hide-if-no-js aria-button-if-js" aria-label="%s">%s</a>', 509 509 $post->ID, 510 510 /* translators: %s: attachment title */ 511 511 esc_attr( sprintf( __( 'Attach “%s” to existing content' ), $title ) ), … … 657 657 if ( current_user_can( 'delete_post', $post->ID ) ) { 658 658 if ( EMPTY_TRASH_DAYS && MEDIA_TRASH ) { 659 659 $actions['trash'] = sprintf( 660 '<a href="%s" class="submitdelete " aria-label="%s">%s</a>',660 '<a href="%s" class="submitdelete aria-button-if-js" aria-label="%s">%s</a>', 661 661 wp_nonce_url( "post.php?action=trash&post=$post->ID", 'trash-post_' . $post->ID ), 662 662 /* translators: %s: attachment title */ 663 663 esc_attr( sprintf( __( 'Move “%s” to the Trash' ), $att_title ) ), … … 666 666 } else { 667 667 $delete_ays = ! MEDIA_TRASH ? " onclick='return showNotice.warn();'" : ''; 668 668 $actions['delete'] = sprintf( 669 '<a href="%s" class="submitdelete "%s aria-label="%s">%s</a>',669 '<a href="%s" class="submitdelete aria-button-if-js"%s aria-label="%s">%s</a>', 670 670 wp_nonce_url( "post.php?action=delete&post=$post->ID", 'delete-post_' . $post->ID ), 671 671 $delete_ays, 672 672 /* translators: %s: attachment title */ … … 685 685 686 686 if ( current_user_can( 'edit_post', $post->ID ) ) { 687 687 $actions['attach'] = sprintf( 688 '<a href="#the-list" onclick="findPosts.open( \'media[]\', \'%s\' ); return false;" class="hide-if-no-js " aria-label="%s">%s</a>',688 '<a href="#the-list" onclick="findPosts.open( \'media[]\', \'%s\' ); return false;" class="hide-if-no-js aria-button-if-js" aria-label="%s">%s</a>', 689 689 $post->ID, 690 690 /* translators: %s: attachment title */ 691 691 esc_attr( sprintf( __( 'Attach “%s” to existing content' ), $att_title ) ), … … 706 706 if ( current_user_can( 'delete_post', $post->ID ) ) { 707 707 if ( $this->is_trash ) { 708 708 $actions['untrash'] = sprintf( 709 '<a href="%s" class="submitdelete " aria-label="%s">%s</a>',709 '<a href="%s" class="submitdelete aria-button-if-js" aria-label="%s">%s</a>', 710 710 wp_nonce_url( "post.php?action=untrash&post=$post->ID", 'untrash-post_' . $post->ID ), 711 711 /* translators: %s: attachment title */ 712 712 esc_attr( sprintf( __( 'Restore “%s” from the Trash' ), $att_title ) ), … … 714 714 ); 715 715 } elseif ( EMPTY_TRASH_DAYS && MEDIA_TRASH ) { 716 716 $actions['trash'] = sprintf( 717 '<a href="%s" class="submitdelete " aria-label="%s">%s</a>',717 '<a href="%s" class="submitdelete aria-button-if-js" aria-label="%s">%s</a>', 718 718 wp_nonce_url( "post.php?action=trash&post=$post->ID", 'trash-post_' . $post->ID ), 719 719 /* translators: %s: attachment title */ 720 720 esc_attr( sprintf( __( 'Move “%s” to the Trash' ), $att_title ) ), … … 724 724 if ( $this->is_trash || ! EMPTY_TRASH_DAYS || ! MEDIA_TRASH ) { 725 725 $delete_ays = ( !$this->is_trash && !MEDIA_TRASH ) ? " onclick='return showNotice.warn();'" : ''; 726 726 $actions['delete'] = sprintf( 727 '<a href="%s" class="submitdelete "%s aria-label="%s">%s</a>',727 '<a href="%s" class="submitdelete aria-button-if-js"%s aria-label="%s">%s</a>', 728 728 wp_nonce_url( "post.php?action=delete&post=$post->ID", 'delete-post_' . $post->ID ), 729 729 $delete_ays, 730 730 /* translators: %s: attachment title */