[wp-trac] [WordPress Trac] #36319: Post meta authorization filter docs are incorrect

WordPress Trac noreply at wordpress.org
Sun Jun 25 20:37:01 UTC 2017


#36319: Post meta authorization filter docs are incorrect
------------------------------------+-----------------------------
 Reporter:  ericlewis               |       Owner:
     Type:  defect (bug)            |      Status:  new
 Priority:  normal                  |   Milestone:  Future Release
Component:  Options, Meta APIs      |     Version:
 Severity:  normal                  |  Resolution:
 Keywords:  has-patch dev-feedback  |     Focuses:  docs
------------------------------------+-----------------------------

Comment (by DrewAPicture):

 @adamsilverstein So, we should at the very least document the
 `auth_{$object_type}_meta_{$meta_key}` hook as having been introduced in
 3.3.0. The way we handle hooks getting renamed is like this:

 {{{
  * @since 3.3.0 As 'auth_post_meta_{$meta_key}'.
  * @since 4.8.0
 }}}

 I'm unsure about whether the other original hook was maintained in the
 rename. If it was, the same procedure applies. If not, we need to properly
 deprecate the old hook.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/36319#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list