Making WordPress.org

Ticket #2850: 2850.diff

File 2850.diff, 2.1 KB (added by Kau-Boy, 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
     
    277277                        'order'          => 'desc',
    278278                        'track'          => 'all',
    279279                        'speaker_link'   => '',
     280                        'groups'         => '',
    280281                ), $attr );
    281282
    282283                foreach ( array( 'orderby', 'order', 'track', 'speaker_link' ) as $key_for_case_sensitive_value ) {
     
    312313                        );
    313314                }
    314315
     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
    315326                $sessions = get_posts( $session_args );
    316327
    317328                // Parse the sessions
     
    21802191                                'show_ui'      => true,
    21812192                        )
    21822193                );
     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                );
    21832221        }
    21842222
    21852223        /**