[wp-trac] [WordPress Trac] #20560: url_to_postid() string matching is not strict enough, can lead to incorrect results
WordPress Trac
wp-trac at lists.automattic.com
Thu May 24 07:33:44 UTC 2012
#20560: url_to_postid() string matching is not strict enough, can lead to incorrect
results
----------------------------------------+------------------------------
Reporter: gradyetc | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Query | Version: 3.0
Severity: normal | Resolution:
Keywords: has-patch needs-unit-tests |
----------------------------------------+------------------------------
Changes (by nacin):
* keywords: has-patch => has-patch needs-unit-tests
* version: 3.4 => 3.0
Comment:
Definitely not new - home_url() was I think 3.0, so we can go with that.
home_url( '/' ) can be used as an alternative to trailingslashit().
Looks good. Unit tests would be nice.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/20560#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list