Make WordPress Core

Ticket #34914: 34914.patch

File 34914.patch, 4.2 KB (added by subharanjan, 8 years ago)

Added 'verb' context to other instances of 'View'

  • src/wp-admin/includes/class-wp-media-list-table.php

     
    641641                                        $delete_ays = !MEDIA_TRASH ? " onclick='return showNotice.warn();'" : '';
    642642                                        $actions['delete'] = "<a class='submitdelete'$delete_ays href='" . wp_nonce_url( "post.php?action=delete&amp;post=$post->ID", 'delete-post_' . $post->ID ) . "'>" . __( 'Delete Permanently' ) . "</a>";
    643643                                }
    644                         $actions['view'] = '<a href="' . get_permalink( $post->ID ) . '" title="' . esc_attr( sprintf( __( 'View &#8220;%s&#8221;' ), $att_title ) ) . '" rel="permalink">' . __( 'View' ) . '</a>';
     644                        $actions['view'] = '<a href="' . get_permalink( $post->ID ) . '" title="' . esc_attr( sprintf( __( 'View &#8220;%s&#8221;' ), $att_title ) ) . '" rel="permalink">' . _x( 'View', 'verb' ) . '</a>';
    645645                        if ( current_user_can( 'edit_post', $post->ID ) )
    646646                                $actions['attach'] = '<a href="#the-list" onclick="findPosts.open( \'media[]\',\''.$post->ID.'\' );return false;" class="hide-if-no-js">'.__( 'Attach' ).'</a>';
    647647                }
     
    660660                        }
    661661                        if ( !$this->is_trash ) {
    662662                                $title =_draft_or_post_title( $post->post_parent );
    663                                 $actions['view'] = '<a href="' . get_permalink( $post->ID ) . '" title="' . esc_attr( sprintf( __( 'View &#8220;%s&#8221;' ), $title ) ) . '" rel="permalink">' . __( 'View' ) . '</a>';
     663                                $actions['view'] = '<a href="' . get_permalink( $post->ID ) . '" title="' . esc_attr( sprintf( __( 'View &#8220;%s&#8221;' ), $title ) ) . '" rel="permalink">' . _x( 'View', 'verb' ) . '</a>';
    664664                        }
    665665                }
    666666
  • src/wp-admin/includes/class-wp-ms-users-list-table.php

     
    343343                                $class .= 'site-archived ';
    344344                        }
    345345
    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>';
    347347
    348348                        /**
    349349                         * Filter the action links displayed next the sites a user belongs to
  • src/wp-admin/includes/class-wp-posts-list-table.php

     
    11931193                                        $actions['view'] = '<a href="' . esc_url( $preview_link ) . '" title="' . esc_attr( sprintf( __( 'Preview &#8220;%s&#8221;' ), $title ) ) . '" rel="permalink">' . __( 'Preview' ) . '</a>';
    11941194                                }
    11951195                        } elseif ( 'trash' != $post->post_status ) {
    1196                                 $actions['view'] = '<a href="' . get_permalink( $post->ID ) . '" title="' . esc_attr( sprintf( __( 'View &#8220;%s&#8221;' ), $title ) ) . '" rel="permalink">' . __( 'View' ) . '</a>';
     1196                                $actions['view'] = '<a href="' . get_permalink( $post->ID ) . '" title="' . esc_attr( sprintf( __( 'View &#8220;%s&#8221;' ), $title ) ) . '" rel="permalink">' . _x( 'View', 'verb' ) . '</a>';
    11971197                        }
    11981198                }
    11991199
  • src/wp-admin/includes/class-wp-terms-list-table.php

     
    435435                if ( current_user_can( $tax->cap->delete_terms ) && $tag->term_id != $default_term )
    436436                        $actions['delete'] = "<a class='delete-tag' href='" . wp_nonce_url( "edit-tags.php?action=delete&amp;taxonomy=$taxonomy&amp;tag_ID=$tag->term_id", 'delete-tag_' . $tag->term_id ) . "'>" . __( 'Delete' ) . "</a>";
    437437                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>';
    439439
    440440                /**
    441441                 * Filter the action links displayed for each term in the Tags list table.