- Timestamp:
- 10/22/2026 06:28:18 AM (2 weeks ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
custom-post-type-permalinks/trunk/CPTP/Module/Rewrite.php
r3166238 r3759392 109 109 } 110 110 111 if ( in_array( 'category', $args->taxonomies, true ) ) { 112 $category_base = get_option( 'category_base', 'category' ); 111 if ( in_array( 'category', (array) $args->taxonomies, true ) ) { 112 $category_base = get_option( 'category_base' ); 113 if ( ! $category_base ) { 114 $category_base = 'category'; 115 } 113 116 114 117 add_rewrite_rule( $slug . '/' . $category_base . '/([^/]+)/page/?([0-9]{1,})/?$', 'index.php?category_name=$matches[1]&paged=$matches[2]&post_type=' . $post_type, 'top' );
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)