Changeset 154 for sites/trunk/wordcamp.org/public_html/wp-content/plugins/wc-post-types/wc-post-types.php
- Timestamp:
- 12/16/2013 07:33:33 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordcamp.org/public_html/wp-content/plugins/wc-post-types/wc-post-types.php
r152 r154 345 345 'date' => null, 346 346 'tracks' => 'all', 347 'speaker_link' => 'anchor', // anchor|wporg| none347 'speaker_link' => 'anchor', // anchor|wporg|permalink|none 348 348 'session_link' => 'permalink', // permalink|anchor|none 349 349 ), $attr ); 350 350 351 if ( ! in_array( $attr['speaker_link'], array( 'anchor', 'wporg', ' none' ) ) )351 if ( ! in_array( $attr['speaker_link'], array( 'anchor', 'wporg', 'permalink', 'none' ) ) ) 352 352 $attr['speaker_link'] = 'anchor'; 353 353 … … 537 537 elseif ( 'wporg' == $attr['speaker_link'] ) // profiles.wordpress.org/user 538 538 $speaker_permalink = $this->get_speaker_wporg_permalink( $speaker->ID ); 539 elseif ( 'permalink' == $attr['speaker_link'] ) // year.city.wordcamp.org/speakers/slug 540 $speaker_permalink = get_permalink( $speaker->ID ); 539 541 540 542 if ( ! empty( $speaker_permalink ) ) … … 1209 1211 register_post_type( 'wcb_speaker', array( 1210 1212 'labels' => $labels, 1211 'rewrite' => array( 'slug' => 'speaker', 'with_front' => false ),1213 'rewrite' => array( 'slug' => 'speaker', 'with_front' => true ), 1212 1214 'supports' => array( 'title', 'editor', 'revisions' ), 1213 1215 'menu_position' => 20, 1214 'public' => false,1216 'public' => true, 1215 1217 'show_ui' => true, 1216 1218 'can_export' => true,
Note: See TracChangeset
for help on using the changeset viewer.