Making WordPress.org


Ignore:
Timestamp:
04/05/2016 04:05:02 PM (10 years ago)
Author:
kovshenin
Message:

WordCamp.org: Reintegrate application-tracking branch into trunk.

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.org2783-2897
  • sites/trunk/wordcamp.org/public_html/wp-content/themes/wordcamp-central-2012/functions.php

    r2402 r2898  
    4040
    4141                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 plugin
    4342                add_filter( 'nav_menu_css_class', array( __CLASS__, 'nav_menu_css_class' ), 10, 3 );
    4443                add_filter( 'wp_nav_menu_items', array( __CLASS__, 'add_links_to_footer_menu' ), 10, 2 );
     
    277276                        'post_type'      => 'wordcamp',
    278277                        '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                        ),
    279282                );
    280283
    281284                switch( $map_id ) {
    282285                        case 'schedule':
    283                                 $parameters['post_status'][] = array( 'publish', 'pending' );
    284286                                $parameters['meta_query'][] = array(
    285287                                        'key'     => 'Start Date (YYYY-mm-dd)',
     
    329331        static function excerpt_more( $more ) {
    330332                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;
    340333        }
    341334
     
    704697                $query = new WP_Query( array(
    705698                        'post_type'              => WCPT_POST_TYPE_ID,
     699                        'post_status'    => WordCamp_Loader::get_public_post_statuses(),
    706700                        'posts_per_page' => $count,
    707701                        'meta_key'       => 'Start Date (YYYY-mm-dd)',
     
    816810                        $wordcamps = new WP_Query( array(
    817811                                'post_type'      => 'wordcamp',
     812                                'post_status'    => WordCamp_Loader::get_public_post_statuses(),
    818813                                'posts_per_page' => -1,
    819814                        ) );
Note: See TracChangeset for help on using the changeset viewer.