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/plugins/wordcamp-api/classes/ics.php

    r2898 r2902  
    5454        $query = new WP_Query( array(
    5555            'post_type'      => WCPT_POST_TYPE_ID,
    56             'post_status'    => array(
    57                 'wcpt-scheduled',
    58                 'wcpt-needs-debrief',
    59                 'wcpt-debrief-schedul',
    60                 'wcpt-closed',
    61 
    62                 // back-compat
    63                 'publish',
    64             ),
     56            'post_status'    => WordCamp_Loader::get_public_post_statuses(),
    6557            'posts_per_page' => 50,
    6658            'meta_key'       => 'Start Date (YYYY-mm-dd)',
Note: See TracChangeset for help on using the changeset viewer.