[wp-trac] [WordPress Trac] #6638: Do not query default category
inside get_permalink() if there is no need
WordPress Trac
wp-trac at lists.automattic.com
Tue Apr 8 01:47:47 GMT 2008
#6638: Do not query default category inside get_permalink() if there is no need
----------------------+-----------------------------------------------------
Reporter: mdawaffe | Owner: anonymous
Type: defect | Status: new
Priority: normal | Milestone: 2.5.1
Component: General | Version: 2.5
Severity: normal | Keywords:
----------------------+-----------------------------------------------------
get_permalink() determines the slug of the default category even when
there is no {{{%category%}}} placeholder in the permalink structure.
Attached moves this query up into the category conditional statement.
--
Ticket URL: <http://trac.wordpress.org/ticket/6638>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list