[wp-trac] [WordPress Trac] #22165: pre_post_insert missing?!
WordPress Trac
wp-trac at lists.automattic.com
Sat Oct 13 08:09:42 UTC 2012
#22165: pre_post_insert missing?!
-------------------------+-----------------------
Reporter: thomask | Owner:
Type: enhancement | Status: reopened
Priority: normal | Milestone:
Component: General | Version: 3.4.2
Severity: trivial | Resolution:
Keywords: has-patch |
-------------------------+-----------------------
Changes (by thomask):
* status: closed => reopened
* resolution: duplicate =>
Comment:
yes, but just for only '''most cases'''. There are e.g. news which can be
written in less then 3 minutes, there are sites with longering the 3
minutes autodraft or turned it off completely and I hate to rely on
functions which work just on most cases, when it is trivial to solve it.
if you do not want to add another filter (why? performance issues?) and
say, that anyway the pre_post_update is called in "most cases" then please
consider at least reposition of pre_post_update action before if ( $update
) condition.
And btw it would be great, if this action would have one or two other
parameters $postarr and $post_before, (if not update, than ID and
$post_before will be NULL), so that we can easily make decision logic
based on previous and future post content.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/22165#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list