Making WordPress.org

Changeset 2008


Ignore:
Timestamp:
10/26/2015 01:19:17 PM (9 years ago)
Author:
kovshenin
Message:

WordCamp Payments: Add a "View All" row action link to a single WordCamp's list of requests.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-payments-network/includes/class-list-table.php

    r1817 r2008  
    131131    public function column_payment( $request ) {
    132132        $edit_post_link = add_query_arg( array( 'post' => $request->ID, 'action' => 'edit' ), admin_url( 'post.php' ) );
    133         return sprintf( '<a href="%s" class="row-title" target="_blank">%s</a>', esc_url( $edit_post_link ), esc_html( $request->post_title ) );
     133        $actions = array(
     134            'view-all' => sprintf( '<a href="%s" target="_blank">View All</a>', esc_url( admin_url( 'edit.php?post_type=wcp_payment_request' ) ) ),
     135        );
     136
     137        return sprintf( '<a href="%s" class="row-title" target="_blank">%s</a>%s',
     138            esc_url( $edit_post_link ),
     139            esc_html( $request->post_title ),
     140            $this->row_actions( $actions )
     141        );
    134142    }
    135143
Note: See TracChangeset for help on using the changeset viewer.