Skip to content

Commit 0b18db4

Browse files
authored
Merge pull request #134 from OpenSourceOrg/fix/taxonomy-permalinks-develop
Remove 'blog' from CPT taxonomies - develop
2 parents 01a797b + d7c43c3 commit 0b18db4

6 files changed

+24
-6
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,11 +355,12 @@ GitHub.sublime-settings
355355
### VisualStudioCode ###
356356
.vscode/
357357
.vscode/*
358-
!.vscode/settings.json
358+
.vscode/settings.json
359359
!.vscode/tasks.json
360360
!.vscode/launch.json
361361
!.vscode/extensions.json
362362
!.vscode/*.code-snippets
363+
themes/osi/.vscode/settings.json
363364

364365
# Local History for Visual Studio Code
365366
.history/

plugins/osi-features/inc/classes/taxonomies/class-taxonomy-license-category.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,10 @@ public function get_args() {
7171

7272
return wp_parse_args(
7373
[
74-
'rewrite' => array( 'slug' => 'license-category' ),
74+
'rewrite' => array(
75+
'slug' => 'license-category',
76+
'with_front' => false,
77+
),
7578
],
7679
parent::get_args()
7780
);

plugins/osi-features/inc/classes/taxonomies/class-taxonomy-publication.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,11 @@ public function get_args() {
7272
return wp_parse_args(
7373
[
7474
'hierarchical' => true,
75-
'rewrite' => array( 'slug' => 'publication' ),
75+
'rewrite' => array(
76+
'slug' => 'publication',
77+
'with_front' => false,
78+
),
79+
7680
],
7781
parent::get_args()
7882
);

plugins/osi-features/inc/classes/taxonomies/class-taxonomy-seat-type.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,10 @@ public function get_args() {
7272
return wp_parse_args(
7373
[
7474
'hierarchical' => false,
75-
'rewrite' => array( 'slug' => 'seat-type' ),
75+
'rewrite' => array(
76+
'slug' => 'seat-type',
77+
'with_front' => false,
78+
),
7679
],
7780
parent::get_args()
7881
);

plugins/osi-features/inc/classes/taxonomies/class-taxonomy-status.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,11 @@ public function get_args() {
7272
return wp_parse_args(
7373
[
7474
'hierarchical' => false,
75-
'rewrite' => array( 'slug' => 'status' ),
75+
'rewrite' => array(
76+
'slug' => 'about/board-of-directors',
77+
'with_front' => false,
78+
'hierarchical' => false,
79+
),
7680
],
7781
parent::get_args()
7882
);

plugins/osi-features/inc/classes/taxonomies/class-taxonomy-steward.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,10 @@ public function get_args() {
7272
return wp_parse_args(
7373
[
7474
'hierarchical' => false,
75-
'rewrite' => array( 'slug' => 'steward' ),
75+
'rewrite' => array(
76+
'slug' => 'steward',
77+
'with_front' => false,
78+
),
7679
],
7780
parent::get_args()
7881
);

0 commit comments

Comments
 (0)