Changeset 2617 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/25/2016 07:34:11 PM (10 years ago)
- Location:
- sites/branches/wcb-payment-request-statuses/wordcamp.org/public_html/wp-content/plugins/wordcamp-payments-network
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
includes/payment-requests-list-table.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
sites/branches/wcb-payment-request-statuses/wordcamp.org/public_html/wp-content/plugins/wordcamp-payments-network
-
Property svn:mergeinfo
set to
/sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-payments-network 2603-2616
-
Property svn:mergeinfo
set to
-
sites/branches/wcb-payment-request-statuses/wordcamp.org/public_html/wp-content/plugins/wordcamp-payments-network/includes/payment-requests-list-table.php
r2538 r2617 77 77 78 78 if ( 'overdue' == $view ) { 79 $where .= $wpdb->prepare( " AND `status` = 'unpaid' AND `due` > 0 AND `due` <= %d ", time() ); 80 } elseif ( 'pending' == $view ) { 81 $where .= " AND `status` = 'unpaid' "; 79 $where .= $wpdb->prepare( " AND `status` = 'wcb-pending-approval' AND `due` > 0 AND `due` <= %d ", time() ); 80 } elseif ( 'pending-approval' == $view ) { 81 $where .= " AND `status` = 'wcb-pending-approval' "; 82 } elseif ( 'approved' == $view ) { 83 $where .= " AND `status` = 'wcb-approved' "; 84 } elseif ( 'pending-payment' == $view ) { 85 $where .= " AND `status` = 'wcb-pending-payment' "; 82 86 } elseif ( 'paid' == $view ) { 83 $where .= " AND `status` = ' paid' ";87 $where .= " AND `status` = 'wcb-paid' "; 84 88 $orderby = 'created'; 85 89 $order = 'desc'; 86 } elseif( 'incomplete' == $view ) { 87 $where .= " AND `status` = 'incomplete' "; 90 } elseif ( 'incomplete' == $view ) { 91 $where .= " AND `status` = 'wcb-incomplete' "; 92 } elseif ( 'cancelled-failed' == $view ) { 93 $where .= " AND `status` IN ( 'wcb-failed', 'wcb-cancelled' ) "; 88 94 } 89 95 … … 153 159 */ 154 160 public function column_status( $request ) { 155 return esc_html( ucwords( $request->post_status ) ); 161 $status = get_post_status_object( $request->post_status ); 162 return esc_html( $status->label ); 156 163 } 157 164
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)