[wp-trac] [WordPress Trac] #40600: get_item filter for hijacking single post request

WordPress Trac noreply at wordpress.org
Mon May 8 08:01:39 UTC 2017


#40600: get_item filter for hijacking single post request
-------------------------------------------------+-------------------------
 Reporter:  ruud@…                               |       Owner:
     Type:  feature request                      |      Status:  closed
 Priority:  normal                               |   Milestone:  Awaiting
Component:  REST API                             |  Review
 Severity:  normal                               |     Version:  4.7
 Keywords:  has-patch has-unit-tests dev-        |  Resolution:  invalid
  feedback                                       |     Focuses:
-------------------------------------------------+-------------------------
Changes (by ruud@…):

 * status:  new => closed
 * resolution:   => invalid


Comment:

 Hi Joe,

 Thanks for your feedback.
 You are right, subclassing the post controller was entirely possible and
 solved my use case.

 At first I was looking for a way to alter the default way it works via
 filters, therefor I came up with this proposal for this additional filter.
 In hindsight subclassing the post controller is a good way to solve this.

 Unless you see more merits for this proposed filter, I would be OK with an
 'wontfix' solution for this trac-ticket. Perhaps the documentation (or
 inline docs) could benefit some more on this topic.

 Thanks,
 Ruud

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


More information about the wp-trac mailing list