[wp-trac] [WordPress Trac] #5305: permalinks broken when article name is numeric
WordPress Trac
noreply at wordpress.org
Tue Aug 18 02:50:26 UTC 2015
#5305: permalinks broken when article name is numeric
------------------------------+---------------------------
Reporter: thomask | Owner: valendesigns
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 4.3
Component: Permalinks | Version: 2.3.1
Severity: major | Resolution: fixed
Keywords: has-patch commit | Focuses:
------------------------------+---------------------------
Changes (by boonebgorges):
* status: reopened => closed
* resolution: => fixed
Comment:
In [changeset:"33630"]:
{{{
#!CommitTicketReference repository="" revision="33630"
When generating a fallback `post_name` using the post ID,
`wp_insert_post()` should clear the post cache immediately.
If the post cache is not cleared at this point, the cache can become stale
for operations performed before the cache is cleared later in the
function.
Specifically, the generation of a `guid` for new posts can use stale data,
resulting in non-unique values. [33262] introduced a call to `get_post()`
that introduced just such an invalidation problem.
Fixes #5305.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/5305#comment:112>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list