Changeset 2627 for sites/branches/wcb-payment-request-statuses/wordcamp.org/public_html/wp-content/plugins/wordcamp-payments-network/includes/payment-requests-list-table.php
- Timestamp:
- 02/26/2016 12:34:20 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/branches/wcb-payment-request-statuses/wordcamp.org/public_html/wp-content/plugins/wordcamp-payments-network/includes/payment-requests-list-table.php
r2623 r2627 142 142 */ 143 143 public function column_payment( $request ) { 144 $title = empty( $request->post_title ) ? '(no title)' : $request->post_title; 144 $blog_id = get_current_blog_id(); 145 $title = empty( $request->post_title ) ? '(no title)' : $request->post_title; 145 146 $edit_post_link = add_query_arg( array( 'post' => $request->ID, 'action' => 'edit' ), admin_url( 'post.php' ) ); 146 147 $actions = array( 147 148 'view-all' => sprintf( '<a href="%s" target="_blank">View All</a>', esc_url( admin_url( 'edit.php?post_type=wcp_payment_request' ) ) ), 148 149 ); 150 151 if ( $request->post_status == 'wcb-pending-approval' ) { 152 $approve_url = wp_nonce_url( add_query_arg( array( 153 'wcb-approve' => sprintf( '%d-%d', $blog_id, $request->ID ), 154 ) ), sprintf( 'wcb-approve-%d-%d', $blog_id, $request->ID ) ); 155 156 $actions['wcb-approve'] = sprintf( '<a style="color: green;" onclick="return confirm(\'Approve this payment request?\');" href="%s">Approve</a>', esc_url( $approve_url ) ); 157 } 149 158 150 159 return sprintf( '<a href="%s" class="row-title" target="_blank">%s</a>%s',
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)