#6638 closed defect (bug) (fixed)
Do not query default category inside get_permalink() if there is no need
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 2.5.1 | Priority: | normal |
| Severity: | normal | Version: | 2.5 |
| Component: | General | Keywords: | has-patch dev-feedback |
| Focuses: | Cc: |
Description
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.
Attachments (1)
Change History (4)
Note: See
TracTickets for help on using
tickets.
(In [7626]) Move category query to get category case of get_permalink to avoid unnecessary queries. Props mdawaffe. fixes #6638 for trunk