WordPress.org

Make WordPress Core

Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#9287 closed task (blessed) (invalid)

Need API function to verify authorization/intention of post/page saves for plugin use.

Reported by: markjaquith Owned by:
Milestone: Priority: normal
Severity: normal Version: 2.8
Component: Plugins Keywords:
Focuses: Cc:

Description

We should have an API function to do this:

http://markjaquith.wordpress.com/2007/01/28/authorization-and-intentionorigination-verification-when-using-the-edit_post-hook/

Something like post_was_saved_from_admin(). Lot of redundant code to do that in every plugin.

Change History (2)

comment:1 Denis-de-Bernardy5 years ago

  • Resolution set to invalid
  • Status changed from new to closed

ues save_post, rather than edit_post. edit_post means just that: post was edited... it gets fired when a comment is added or removed, among other things.

comment:2 Denis-de-Bernardy5 years ago

  • Milestone 2.8 deleted
Note: See TracTickets for help on using tickets.