Changeset 2832
- Timestamp:
- 03/28/2016 08:45:29 PM (9 years ago)
- Location:
- sites/branches/application-tracking/wordcamp.org/public_html/wp-content/plugins/wcpt
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/branches/application-tracking/wordcamp.org/public_html/wp-content/plugins/wcpt/applications/tracker.php
r2828 r2832 15 15 $statuses = \WordCamp_Loader::get_post_statuses(); 16 16 $milestones = \WordCamp_Loader::map_statuses_to_milestones(); 17 17 18 $shown_statuses = array_keys( $statuses ); 19 $shown_statuses[] = WCPT_DEFAULT_STATUS; 20 unset( $shown_statuses['wcpt-budget-closed'] ); // todo update when latest statuses committed 21 18 22 $posts = get_posts( array( 19 23 'post_type' => 'wordcamp', 20 'post_status' => 'any', // todo. all custom ones? not trash21 'posts_per_page' => 10, // todo24 'post_status' => $shown_statuses, 25 'posts_per_page' => 300, 22 26 ) ); 23 27 24 28 // todo sort camps by last update. maybe do in meta query based on ID of _status_change? or call get_last_status_update_time_diff? 29 // todo group camps together by city name - how does that interact with sorting by last update? display list alphabetically instead of by last update? 25 30 26 31 require_once( dirname( __DIR__ ) . '/wcpt-wordcamp/wordcamp-admin.php' ); -
sites/branches/application-tracking/wordcamp.org/public_html/wp-content/plugins/wcpt/applications/wordcamp.php
r2821 r2832 161 161 'post_type' => 'wordcamp', 162 162 'post_title' => 'WordCamp ' . $data['q_1079103_wordcamp_location'], 163 'post_status' => 'draft', // todo use new default status163 'post_status' => WCPT_DEFAULT_STATUS, 164 164 'post_author' => is_a( $user, 'WP_User' ) ? $user->ID : 0, 165 165 ); -
sites/branches/application-tracking/wordcamp.org/public_html/wp-content/plugins/wcpt/wcpt-wordcamp/wordcamp-admin.php
r2827 r2832 636 636 do_action( 'wcpt_added_to_final_schedule', $post ); 637 637 } 638 639 // todo update with new statuses 640 // todo add new triggers - which ones? 638 641 } 639 642 -
sites/branches/application-tracking/wordcamp.org/public_html/wp-content/plugins/wcpt/wcpt-wordcamp/wordcamp-loader.php
r2828 r2832 3 3 define( 'WCPT_YEAR_ID', 'wordcamp_year' ); 4 4 define( 'WCPT_SLUG', 'wordcamps' ); 5 define( 'WCPT_DEFAULT_STATUS', 'draft' ); // todo update when latest statuses committed 6 // todo realign 5 7 6 8 if ( !class_exists( 'WordCamp_Loader' ) ) :
Note: See TracChangeset
for help on using the changeset viewer.