Making WordPress.org

Changeset 1817


Ignore:
Timestamp:
08/06/2015 11:06:27 PM (10 years ago)
Author:
iandunn
Message:

WordCamp Payments Dashboard: Display incomplete requests.

Location:
sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-payments-network
Files:
2 edited

Legend:

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

    r1661 r1817  
    8080            $orderby = 'created';
    8181            $order = 'desc';
     82        } elseif( 'incomplete' == $view ) {
     83            $where .= " AND `status` = 'incomplete' ";
    8284        }
    8385
  • sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-payments-network/wordcamp-payments-network.php

    r1815 r1817  
    102102            while ( $requests = get_posts( array(
    103103                'paged' => $paged++,
    104                 'post_status' => array( 'paid', 'unpaid' ),
     104                'post_status' => array( 'paid', 'unpaid', 'incomplete' ),
    105105                'post_type' => 'wcp_payment_request',
    106106                'posts_per_page' => 20,
     
    217217        $tab = 'overdue';
    218218
    219         if ( isset( $_REQUEST['wcp-section'] ) && in_array( $_REQUEST['wcp-section'], array( 'pending', 'overdue', 'paid' ) ) ) {
     219        if ( isset( $_REQUEST['wcp-section'] ) && in_array( $_REQUEST['wcp-section'], array( 'pending', 'overdue', 'paid', 'incomplete' ) ) ) {
    220220            $tab = $_REQUEST['wcp-section'];
    221221        }
     
    233233            'pending' => 'Pending',
    234234            'paid'    => 'Paid',
     235            'incomplete' => __( 'Incomplete', 'wordcamporg' ),
    235236        );
    236237
Note: See TracChangeset for help on using the changeset viewer.