[wp-trac] Re: [WordPress Trac] #9466: %tag% not handled properly in
get_permalink (was: Not work %tag% in permalinks)
WordPress Trac
wp-trac at lists.automattic.com
Mon Apr 6 08:28:33 GMT 2009
#9466: %tag% not handled properly in get_permalink
--------------------------+-------------------------------------------------
Reporter: gashek | Owner: ryan
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: 2.8
Component: Permalinks | Version: 2.7.1
Severity: normal | Resolution:
Keywords: needs-patch |
--------------------------+-------------------------------------------------
Changes (by DD32):
* keywords: permalink tag => needs-patch
* status: closed => reopened
* resolution: invalid =>
* milestone: Unassigned => 2.8
Comment:
The posters request is valid.
Currently the Permalink Documentation specifies that %tag% along with,
%category% are valid within the Permalink structure.
{{{WP_Rewrite}}} is aware that %tag% is valid(see
http://core.trac.wordpress.org/browser/trunk/wp-
includes/rewrite.php#L611), However, {{{get_permalink()}}} is not(see
http://core.trac.wordpress.org/browser/trunk/wp-includes/link-
template.php#L81 ), So it returns a bad permalink when %tag% is used. (It
doesnt get replaced)
--
Ticket URL: <http://core.trac.wordpress.org/ticket/9466#comment:5>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list