Changeset 38031
- Timestamp:
- 07/10/2016 07:30:20 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-media-list-table.php
r37952 r38031 477 477 $title = _draft_or_post_title( $post->post_parent ); 478 478 $parent_type = get_post_type_object( $parent->post_type ); 479 479 480 480 if ( $parent_type && $parent_type->show_ui && current_user_can( 'edit_post', $post->post_parent ) ) { 481 481 ?> … … 508 508 $title = _draft_or_post_title( $post->post_parent ); 509 509 printf( 510 '<br /><a href="#the-list" onclick="findPosts.open( \'media[]\', \'%s\' ); return false;" class="hide-if-no-js " aria-label="%s">%s</a>',510 '<br /><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>', 511 511 $post->ID, 512 512 /* translators: %s: attachment title */ … … 660 660 if ( EMPTY_TRASH_DAYS && MEDIA_TRASH ) { 661 661 $actions['trash'] = sprintf( 662 '<a href="%s" class="submitdelete " aria-label="%s">%s</a>',662 '<a href="%s" class="submitdelete aria-button-if-js" aria-label="%s">%s</a>', 663 663 wp_nonce_url( "post.php?action=trash&post=$post->ID", 'trash-post_' . $post->ID ), 664 664 /* translators: %s: attachment title */ … … 669 669 $delete_ays = ! MEDIA_TRASH ? " onclick='return showNotice.warn();'" : ''; 670 670 $actions['delete'] = sprintf( 671 '<a href="%s" class="submitdelete "%s aria-label="%s">%s</a>',671 '<a href="%s" class="submitdelete aria-button-if-js"%s aria-label="%s">%s</a>', 672 672 wp_nonce_url( "post.php?action=delete&post=$post->ID", 'delete-post_' . $post->ID ), 673 673 $delete_ays, … … 688 688 if ( current_user_can( 'edit_post', $post->ID ) ) { 689 689 $actions['attach'] = sprintf( 690 '<a href="#the-list" onclick="findPosts.open( \'media[]\', \'%s\' ); return false;" class="hide-if-no-js " aria-label="%s">%s</a>',690 '<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>', 691 691 $post->ID, 692 692 /* translators: %s: attachment title */ … … 709 709 if ( $this->is_trash ) { 710 710 $actions['untrash'] = sprintf( 711 '<a href="%s" class="submitdelete " aria-label="%s">%s</a>',711 '<a href="%s" class="submitdelete aria-button-if-js" aria-label="%s">%s</a>', 712 712 wp_nonce_url( "post.php?action=untrash&post=$post->ID", 'untrash-post_' . $post->ID ), 713 713 /* translators: %s: attachment title */ … … 717 717 } elseif ( EMPTY_TRASH_DAYS && MEDIA_TRASH ) { 718 718 $actions['trash'] = sprintf( 719 '<a href="%s" class="submitdelete " aria-label="%s">%s</a>',719 '<a href="%s" class="submitdelete aria-button-if-js" aria-label="%s">%s</a>', 720 720 wp_nonce_url( "post.php?action=trash&post=$post->ID", 'trash-post_' . $post->ID ), 721 721 /* translators: %s: attachment title */ … … 727 727 $delete_ays = ( !$this->is_trash && !MEDIA_TRASH ) ? " onclick='return showNotice.warn();'" : ''; 728 728 $actions['delete'] = sprintf( 729 '<a href="%s" class="submitdelete "%s aria-label="%s">%s</a>',729 '<a href="%s" class="submitdelete aria-button-if-js"%s aria-label="%s">%s</a>', 730 730 wp_nonce_url( "post.php?action=delete&post=$post->ID", 'delete-post_' . $post->ID ), 731 731 $delete_ays,
Note: See TracChangeset
for help on using the changeset viewer.