Ticket #2850: 2850.diff
File 2850.diff, 2.1 KB (added by , 8 years ago) |
---|
-
www/wordpress-meta-environment/meta-repository/wordcamp.org/public_html/wp-content/plugins/wc-post-types/wc-post-types.php
IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8
277 277 'order' => 'desc', 278 278 'track' => 'all', 279 279 'speaker_link' => '', 280 'groups' => '', 280 281 ), $attr ); 281 282 282 283 foreach ( array( 'orderby', 'order', 'track', 'speaker_link' ) as $key_for_case_sensitive_value ) { … … 312 313 ); 313 314 } 314 315 316 if ( ! empty( $attr['groups'] ) ) { 317 $session_args['tax_query'] = array( 318 array( 319 'taxonomy' => 'wcb_speaker_group', 320 'field' => 'slug', 321 'terms' => explode( ',', $attr['groups'] ), 322 ), 323 ); 324 } 325 315 326 $sessions = get_posts( $session_args ); 316 327 317 328 // Parse the sessions … … 2180 2191 'show_ui' => true, 2181 2192 ) 2182 2193 ); 2194 2195 // Labels for speaker groups. 2196 $labels = array( 2197 'name' => __( 'Groups', 'wordcamporg' ), 2198 'singular_name' => __( 'Group', 'wordcamporg' ), 2199 'search_items' => __( 'Search Groups', 'wordcamporg' ), 2200 'popular_items' => __( 'Popular Groups', 'wordcamporg' ), 2201 'all_items' => __( 'All Groups', 'wordcamporg' ), 2202 'edit_item' => __( 'Edit Group', 'wordcamporg' ), 2203 'update_item' => __( 'Update Group', 'wordcamporg' ), 2204 'add_new_item' => __( 'Add Group', 'wordcamporg' ), 2205 'new_item_name' => __( 'New Group', 'wordcamporg' ), 2206 ); 2207 2208 // Register speaker groups taxonomy 2209 register_taxonomy( 2210 'wcb_speaker_group', 2211 'wcb_speaker', 2212 array( 2213 'labels' => $labels, 2214 'rewrite' => array( 'slug' => 'speaker-group' ), 2215 'query_var' => 'group', 2216 'hierarchical' => true, 2217 'public' => true, 2218 'show_ui' => true, 2219 ) 2220 ); 2183 2221 } 2184 2222 2185 2223 /**