Correctly handle PATHINFO CPTs and CTs that specify with_front=false. fixes #16807 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@17518 1a063a9b-81f0-0310-95a4-ce76da25c4cd
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