[wp-trac] [WordPress Trac] #33982: WP REST API Stage One: Infrastructure

WordPress Trac noreply at wordpress.org
Thu Oct 8 00:42:15 UTC 2015


#33982: WP REST API Stage One: Infrastructure
----------------------------+-----------------------
 Reporter:  rachelbaker     |       Owner:  rmccue
     Type:  task (blessed)  |      Status:  assigned
 Priority:  normal          |   Milestone:  4.4
Component:  REST API        |     Version:
 Severity:  normal          |  Resolution:
 Keywords:  has-patch       |     Focuses:
----------------------------+-----------------------

Comment (by rmccue):

 Updated patch based on @chriscct7's note that incomplete objects
 (unserialized objects with a missing class) give `object` from `gettype()`
 despite being unusable. Adds an `is_object` check as a backup. (Avoided
 using `switch ( true )` since it'd have a bit more overhead for non-
 objects.)

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


More information about the wp-trac mailing list