[wp-trac] [WordPress Trac] #47965: Missing strict comparison check in REST Autosaves Controller

WordPress Trac noreply at wordpress.org
Wed Nov 6 03:32:51 UTC 2019


#47965: Missing strict comparison check in REST Autosaves Controller
------------------------------------+------------------------------
 Reporter:  dkarfa                  |       Owner:  (none)
     Type:  defect (bug)            |      Status:  new
 Priority:  normal                  |   Milestone:  Awaiting Review
Component:  REST API                |     Version:
 Severity:  normal                  |  Resolution:
 Keywords:  has-patch dev-feedback  |     Focuses:  rest-api
------------------------------------+------------------------------
Changes (by TimothyBlynJacobs):

 * keywords:  has-patch => has-patch dev-feedback


Comment:

 In other places this is used in core, a non-strict comparison check is
 used as well. For instance, `wp_save_post_revision()` or
 `wp_create_post_autosave()`. I think we'd want to be consistent, but I'm
 not sure.

 Cc: @SergeyBiryukov

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


More information about the wp-trac mailing list