mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 09:37:42 +01:00
Drop leading / by retrieving the inner subpattern when matching attachment endpoints.
Fixes #22619 git-svn-id: http://core.svn.wordpress.org/trunk@24809 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
70491482c6
commit
dffea4e020
@ -1435,8 +1435,8 @@ class WP_Rewrite {
|
||||
if ( !empty($endpoints) ) {
|
||||
foreach ( (array) $ep_query_append as $regex => $ep ) {
|
||||
if ( $ep[0] & EP_ATTACHMENT ) {
|
||||
$rewrite[$sub1 . $regex] = $subquery . $ep[1] . $this->preg_index(2);
|
||||
$rewrite[$sub2 . $regex] = $subquery . $ep[1] . $this->preg_index(2);
|
||||
$rewrite[$sub1 . $regex] = $subquery . $ep[1] . $this->preg_index(3);
|
||||
$rewrite[$sub2 . $regex] = $subquery . $ep[1] . $this->preg_index(3);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user