[wp-trac] [WordPress Trac] #5305: permalinks broken when article name is numeric
WordPress Trac
noreply at wordpress.org
Tue Feb 10 21:06:20 UTC 2015
#5305: permalinks broken when article name is numeric
--------------------------+---------------------------
Reporter: thomask | Owner: valendesigns
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: 4.2
Component: Permalinks | Version: 2.3.1
Severity: major | Resolution:
Keywords: | Focuses:
--------------------------+---------------------------
Comment (by valendesigns):
Hooray, I'm confident I have a solution!
However, I want to test it rigorously before I upload it this time. The
previous fix was OK in theory, but it didn't work in practice. This time
around I created a `pre_get_posts` filter that solves the issue for this
and all the other associated tickets without changing the permalinks, so
no backwards compatibility concerns or broken tests.
I'll do a bit more testing and upload the patch in the next day or so. In
the meantime I need to know how to create a unit test post that has an ID
above 1k, so I can test for one of the known `year` permalink conflicts.
Anyone have suggestions or tricks that might be useful in artificially
inflating the post ID without actually creating that many posts?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/5305#comment:59>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list