mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 12:20:22 +00:00
Correctly handle PATHINFO CPTs and CTs that specify with_front=false. fixes #16807 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@17518 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1857,6 +1857,8 @@ class WP_Rewrite {
|
||||
function add_permastruct($name, $struct, $with_front = true, $ep_mask = EP_NONE) {
|
||||
if ( $with_front )
|
||||
$struct = $this->front . $struct;
|
||||
else
|
||||
$struct = $this->root . $struct;
|
||||
$this->extra_permastructs[$name] = array($struct, $ep_mask);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user