Changeset 1222
- Timestamp:
- 02/04/2015 11:46:59 PM (10 years ago)
- 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
r1000 r1222 45 45 */ 46 46 public function set_view( $view ) { 47 $this->view = 'over view';48 if ( in_array( $view, array( ' overview', 'pending', 'overdue' ) ) )47 $this->view = 'overdue'; 48 if ( in_array( $view, array( 'pending', 'overdue', 'paid' ) ) ) 49 49 $this->view = $view; 50 50 } … … 87 87 } elseif ( 'pending' == $this->view ) { 88 88 $where .= " AND `status` = 'unpaid' "; 89 } elseif ( 'paid' == $this->view ) { 90 $where .= " AND `status` = 'paid' "; 89 91 } 90 92 -
sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-payments-network/wordcamp-payments-network.php
r999 r1222 200 200 <form id="posts-filter" action="" method="get"> 201 201 <input type="hidden" name="page" value="wcp-dashboard" /> 202 <input type="hidden" name="wcp-section" value="over view" />202 <input type="hidden" name="wcp-section" value="overdue" /> 203 203 <?php self::$list_table->display(); ?> 204 204 </form> … … 225 225 return strtolower( $_REQUEST['wcp-section'] ); 226 226 227 return 'over view';227 return 'overdue'; 228 228 } 229 229 … … 234 234 $current_section = self::get_current_tab(); 235 235 $sections = array( 236 'overview' => 'Overview',237 236 'overdue' => 'Overdue', 238 237 'pending' => 'Pending', 238 'paid' => 'Paid', 239 239 ); 240 240
Note: See TracChangeset
for help on using the changeset viewer.