Making WordPress.org


Ignore:
Timestamp:
10/25/2014 05:00:50 AM (10 years ago)
Author:
iandunn
Message:

Remove unfinished code accidentally commited in r758.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordcamp.org/public_html/wp-content/plugins/wc-post-types/wc-post-types.php

    r933 r934  
    16991699// Load the plugin class.
    17001700$GLOBALS['wcpt_plugin'] = new WordCamp_Post_Types_Plugin;
    1701 
    1702 
    1703 /*
    1704 $track_slugs   = 'talks,workshops';
    1705 $transient_key = 'wcpt_track_speaker_ids_' . substr( md5( $track_slugs ), 0, 22 ); // discard trailing hash characters to stay within transient limit
    1706 
    1707 if ( ! $speaker_ids = get_transient( $transient_key ) ) {
    1708     $speaker_ids    = array();
    1709     $track_sessions = get_posts( array(
    1710         'post_type'   => 'wcb_session',
    1711         'numberposts' => -1,
    1712         'tax_query'   => array(
    1713             array(
    1714                 'taxonomy' => 'wcb_track',
    1715                 'field'    => 'slug',
    1716                 'terms'    => explode( ',', $track_slugs ),
    1717             ),
    1718         ),
    1719     ) );
    1720 
    1721     foreach ( $track_sessions as $session ) {
    1722         $session_speaker_ids = get_post_meta( $session->ID, '_wcpt_speaker_id' );
    1723         $speaker_ids         = array_merge( $speaker_ids, $session_speaker_ids );
    1724     }
    1725 
    1726     //set_transient( $transient_key, $speaker_ids, HOUR_IN_SECONDS );
    1727 }
    1728 
    1729 $speakers = get_posts( array(
    1730     'post_type'   => 'wcb_speaker',
    1731     'numberposts' => -1,
    1732     'post__in'    => $speaker_ids,
    1733 ) );
    1734 
    1735 var_dump( $track_slugs, $transient_key, $track_sessions, $speaker_ids, $speakers ); wp_die('');
    1736 */
Note: See TracChangeset for help on using the changeset viewer.