Making WordPress.org


Ignore:
Timestamp:
04/05/2016 08:23:48 PM (9 years ago)
Author:
iandunn
Message:

WordCamp.org: Call get_public_post_statuses() instead of hard-coding statuses

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordcamp.org/public_html/wp-content/themes/wordcamp-central-2012/template-home.php

    r2898 r2902  
    1717            if ( function_exists( 'wcpt_has_wordcamps' ) &&
    1818                wcpt_has_wordcamps( array(
    19                     'post_status' => array(
    20                         'wcpt-scheduled',
    21                         'wcpt-needs-debrief',
    22                         'wcpt-debrief-schedul',
    23                         'wcpt-closed',
    24 
    25                         // back-compat
    26                         'publish',
    27                     ),
     19                    'post_status' => WordCamp_Loader::get_public_post_statuses(),
    2820                    'posts_per_page' => 5,
    2921                    'meta_key'       => 'Start Date (YYYY-mm-dd)',
Note: See TracChangeset for help on using the changeset viewer.