Making WordPress.org


Ignore:
Timestamp:
06/18/2015 08:50:34 PM (11 years ago)
Author:
coffee2code
Message:

developer.wordpress.org: Set rewrite 'with_front' to false for custom taxonomies.

Fixes #673.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/inc/registrations.php

    r1194 r1677  
    189189                        // Hierarchical x 2 to enable (.+) rather than ([^/]+) for rewrites.
    190190                        'hierarchical'          => true,
    191                         'rewrite'               => array( 'slug' => 'reference/files', 'hierarchical' => true ),
     191                        'rewrite'               => array( 'with_front' => false, 'slug' => 'reference/files', 'hierarchical' => true ),
    192192                        'sort'                  => false,
    193193                        'update_count_callback' => '_update_post_term_count',
    … …  
    199199                        'label'                 => '@package',
    200200                        'public'                => true,
    201                         'rewrite'               => array( 'slug' => 'reference/package' ),
     201                        'rewrite'               => array( 'with_front' => false, 'slug' => 'reference/package' ),
    202202                        'sort'                  => false,
    203203                        'update_count_callback' => '_update_post_term_count',
    … …  
    209209                        'label'                 => __( '@since', 'wporg' ),
    210210                        'public'                => true,
    211                         'rewrite'               => array( 'slug' => 'reference/since' ),
     211                        'rewrite'               => array( 'with_front' => false, 'slug' => 'reference/since' ),
    212212                        'sort'                  => false,
    213213                        'update_count_callback' => '_update_post_term_count',
Note: See TracChangeset for help on using the changeset viewer.