Changeset 2898 for sites/trunk/wordcamp.org/public_html/wp-content/themes/wordcamp-central-2012/functions.php
- Timestamp:
- 04/05/2016 04:05:02 PM (8 years ago)
- Location:
- sites/trunk/wordcamp.org
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordcamp.org
-
Property
svn:mergeinfo
set to
/sites/branches/application-tracking/wordcamp.org merged eligible
-
Property
svn:mergeinfo
set to
-
sites/trunk/wordcamp.org/public_html/wp-content/themes/wordcamp-central-2012/functions.php
r2402 r2898 40 40 41 41 add_filter( 'excerpt_more', array( __CLASS__, 'excerpt_more' ), 11 ); 42 // add_filter( 'wcpt_register_post_type', array( __CLASS__, 'wcpt_register_post_type' ) ); // set to public in wcpt plugin43 42 add_filter( 'nav_menu_css_class', array( __CLASS__, 'nav_menu_css_class' ), 10, 3 ); 44 43 add_filter( 'wp_nav_menu_items', array( __CLASS__, 'add_links_to_footer_menu' ), 10, 2 ); … … 277 276 'post_type' => 'wordcamp', 278 277 'posts_per_page' => -1, 278 'post_status' => array_merge( 279 WordCamp_Loader::get_public_post_statuses(), 280 WordCamp_Loader::get_pre_planning_post_statuses() 281 ), 279 282 ); 280 283 281 284 switch( $map_id ) { 282 285 case 'schedule': 283 $parameters['post_status'][] = array( 'publish', 'pending' );284 286 $parameters['meta_query'][] = array( 285 287 'key' => 'Start Date (YYYY-mm-dd)', … … 329 331 static function excerpt_more( $more ) { 330 332 return ' …'; 331 }332 333 /**334 * Filters wcpt_register_post_type, sets post type to public.335 * @todo move to wcpt_register_post_types when ready.336 */337 static function wcpt_register_post_type( $args ) {338 $args['public'] = true;339 return $args;340 333 } 341 334 … … 704 697 $query = new WP_Query( array( 705 698 'post_type' => WCPT_POST_TYPE_ID, 699 'post_status' => WordCamp_Loader::get_public_post_statuses(), 706 700 'posts_per_page' => $count, 707 701 'meta_key' => 'Start Date (YYYY-mm-dd)', … … 816 810 $wordcamps = new WP_Query( array( 817 811 'post_type' => 'wordcamp', 812 'post_status' => WordCamp_Loader::get_public_post_statuses(), 818 813 'posts_per_page' => -1, 819 814 ) );
Note: See TracChangeset
for help on using the changeset viewer.