Ticket #34914: 34914.patch
File 34914.patch, 4.2 KB (added by , 9 years ago) |
---|
-
src/wp-admin/includes/class-wp-media-list-table.php
641 641 $delete_ays = !MEDIA_TRASH ? " onclick='return showNotice.warn();'" : ''; 642 642 $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>"; 643 643 } 644 $actions['view'] = '<a href="' . get_permalink( $post->ID ) . '" title="' . esc_attr( sprintf( __( 'View “%s”' ), $att_title ) ) . '" rel="permalink">' . _ _( 'View' ) . '</a>';644 $actions['view'] = '<a href="' . get_permalink( $post->ID ) . '" title="' . esc_attr( sprintf( __( 'View “%s”' ), $att_title ) ) . '" rel="permalink">' . _x( 'View', 'verb' ) . '</a>'; 645 645 if ( current_user_can( 'edit_post', $post->ID ) ) 646 646 $actions['attach'] = '<a href="#the-list" onclick="findPosts.open( \'media[]\',\''.$post->ID.'\' );return false;" class="hide-if-no-js">'.__( 'Attach' ).'</a>'; 647 647 } … … 660 660 } 661 661 if ( !$this->is_trash ) { 662 662 $title =_draft_or_post_title( $post->post_parent ); 663 $actions['view'] = '<a href="' . get_permalink( $post->ID ) . '" title="' . esc_attr( sprintf( __( 'View “%s”' ), $title ) ) . '" rel="permalink">' . _ _( 'View' ) . '</a>';663 $actions['view'] = '<a href="' . get_permalink( $post->ID ) . '" title="' . esc_attr( sprintf( __( 'View “%s”' ), $title ) ) . '" rel="permalink">' . _x( 'View', 'verb' ) . '</a>'; 664 664 } 665 665 } 666 666 -
src/wp-admin/includes/class-wp-ms-users-list-table.php
343 343 $class .= 'site-archived '; 344 344 } 345 345 346 $actions['view'] = '<a class="' . $class . '" href="' . esc_url( get_home_url( $val->userblog_id ) ) . '">' . _ _( 'View' ) . '</a>';346 $actions['view'] = '<a class="' . $class . '" href="' . esc_url( get_home_url( $val->userblog_id ) ) . '">' . _x( 'View', 'verb' ) . '</a>'; 347 347 348 348 /** 349 349 * Filter the action links displayed next the sites a user belongs to -
src/wp-admin/includes/class-wp-posts-list-table.php
1193 1193 $actions['view'] = '<a href="' . esc_url( $preview_link ) . '" title="' . esc_attr( sprintf( __( 'Preview “%s”' ), $title ) ) . '" rel="permalink">' . __( 'Preview' ) . '</a>'; 1194 1194 } 1195 1195 } elseif ( 'trash' != $post->post_status ) { 1196 $actions['view'] = '<a href="' . get_permalink( $post->ID ) . '" title="' . esc_attr( sprintf( __( 'View “%s”' ), $title ) ) . '" rel="permalink">' . _ _( 'View' ) . '</a>';1196 $actions['view'] = '<a href="' . get_permalink( $post->ID ) . '" title="' . esc_attr( sprintf( __( 'View “%s”' ), $title ) ) . '" rel="permalink">' . _x( 'View', 'verb' ) . '</a>'; 1197 1197 } 1198 1198 } 1199 1199 -
src/wp-admin/includes/class-wp-terms-list-table.php
435 435 if ( current_user_can( $tax->cap->delete_terms ) && $tag->term_id != $default_term ) 436 436 $actions['delete'] = "<a class='delete-tag' href='" . wp_nonce_url( "edit-tags.php?action=delete&taxonomy=$taxonomy&tag_ID=$tag->term_id", 'delete-tag_' . $tag->term_id ) . "'>" . __( 'Delete' ) . "</a>"; 437 437 if ( $tax->public ) 438 $actions['view'] = '<a href="' . get_term_link( $tag ) . '">' . _ _( 'View' ) . '</a>';438 $actions['view'] = '<a href="' . get_term_link( $tag ) . '">' . _x( 'View', 'verb' ) . '</a>'; 439 439 440 440 /** 441 441 * Filter the action links displayed for each term in the Tags list table.