[wp-trac] [WordPress Trac] #15515: content_save_pre et al don't supply context
WordPress Trac
noreply at wordpress.org
Fri Oct 30 23:14:24 UTC 2015
#15515: content_save_pre et al don't supply context
-------------------------------+-----------------------------
Reporter: johnbillion | Owner:
Type: enhancement | Status: reopened
Priority: normal | Milestone: Future Release
Component: Posts, Post Types | Version: 2.3
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
-------------------------------+-----------------------------
Changes (by westonruter):
* status: closed => reopened
* version: => 2.3
* resolution: wontfix =>
* milestone: => Future Release
Comment:
I'm interested.
Using a global `$post` is not robust since calling
`wp_insert_post()`/`wp_update_post()` (via a plugin) will not necessarily
set the `$post` global. Besides, relying on globals isn't a practice we
should encourage anyway.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/15515#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list