[wp-trac] [WordPress Trac] #36414: Replacing confusing legacy code with core recommended method
WordPress Trac
noreply at wordpress.org
Mon Apr 4 23:13:43 UTC 2016
#36414: Replacing confusing legacy code with core recommended method
-------------------------+-----------------------------
Reporter: tloureiro | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: trunk
Severity: normal | Keywords:
Focuses: |
-------------------------+-----------------------------
General template weekly archive link URL constructor was using a confusing
method to generate query string:
{{{#!php
<?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
--
Ticket URL: <https://core.trac.wordpress.org/ticket/36414>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list