[wp-hackers] post processing weirdness

Daniel Westermann-Clark daniel at acceleration.net
Tue Jun 28 01:31:41 GMT 2005

> Drafts should not have permalinks.  First, they're drafts, so
> there's nothing "perma" about them, just on a conceptual level.

I agree.  There's some funny logic in get_permalinks, which is the
cause of crufty URLs on posts which were originally saved as drafts.

> What should happen, though, is that the permalink is created before
> the publish_post action goes out.  This is not always the case, and
> that's a bug.

This appears to be simply a problem with the 'editpost' branch in
wp-admin/post.php, which is missing the appropriate SQL.

Patch against (sorry, I'm not brave enough to run current SVN)


I'm not going to claim that's the "best" way to accomplish things, but
it works in my tests.

Daniel Westermann-Clark

More information about the wp-hackers mailing list