Opened 9 years ago
Closed 9 years ago
#36414 closed enhancement (fixed)
Replacing confusing legacy code with core recommended method
Reported by: | tloureiro | Owned by: | ocean90 |
---|---|---|---|
Milestone: | 4.6 | Priority: | normal |
Severity: | normal | Version: | |
Component: | General | Keywords: | has-patch dev-feedback |
Focuses: | Cc: |
Description
General template weekly archive link URL constructor was using a confusing method to generate query string:
<?php sprintf( '%1$s/%2$s%3$sm%4$s%5$s%6$sw%7$s%8$d', home_url(), '', '?', '=', $arc_year, '&', '=', $result->week );
Replaced with add_query_arg function call
Attachments (1)
Change History (5)
Note: See
TracTickets for help on using
tickets.
general-template.php patch