[wp-trac] [WordPress Trac] #30940: Extend delete actions arguments
WordPress Trac
noreply at wordpress.org
Mon Jan 12 14:44:35 UTC 2015
#30940: Extend delete actions arguments
-------------------------------+------------------------------
Reporter: jadpm | Owner:
Type: feature request | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Posts, Post Types | Version: trunk
Severity: normal | Resolution:
Keywords: | Focuses:
-------------------------------+------------------------------
Comment (by jadpm):
New patch that creates and passes a WP_Post object.
I first thought about using WP_Post::get_instance, but it is quite useless
to create cached data that is going to be deleted right away. AFAIK,
creating a WP_Post object from the row object does not add anything extra
but mapping the row attributes into the WP_Post object ones.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/30940#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list