[wp-trac] [WordPress Trac] #38700: REST API: Cannot send an empty or no-op comment update

WordPress Trac noreply at wordpress.org
Tue Nov 8 02:15:57 UTC 2016


#38700: REST API: Cannot send an empty or no-op comment update
--------------------------------------+------------------------------
 Reporter:  jnylen0                   |       Owner:
     Type:  defect (bug)              |      Status:  new
 Priority:  normal                    |   Milestone:  Awaiting Review
Component:  REST API                  |     Version:  trunk
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+------------------------------

Comment (by rmccue):

 I'm not a fan of using `did_action` here in a meta-programming way, as
 it's possible plugins could be firing this hook. Could we instead check
 the new data against the current data, and if it's equal, don't update?

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


More information about the wp-trac mailing list