WordPress.org

Make WordPress Core

Opened 3 years ago

Closed 3 years ago

#39582 closed enhancement (wontfix)

Deprecate the edit_post hook

Reported by: JeffMatson Owned by:
Milestone: Priority: normal
Severity: normal Version: 4.8
Component: Posts, Post Types Keywords:
Focuses: Cc:
PR Number:

Description

The [edit_post](https://core.trac.wordpress.org/browser/tags/4.5.3/src/wp-includes/post.php#L3491) hook is redundant and I do not see any benefit over post_updated, which is called immediately after and provides more data.

Change History (1)

#1 @dd32
3 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to wontfix
  • Status changed from new to closed

I don't really see any benefit from deprecating the filter, even if it is now redundant and those who are using it aren't facing any immediate compatibility issues by using it.

post_updated was probably added for consistency with other actions, it doesn't necessarily have to replace the existing hook.

Note: See TracTickets for help on using tickets.