[wp-trac] [WordPress Trac] #25047: Improve heartbeat queue checking

WordPress Trac noreply at wordpress.org
Tue Aug 20 00:27:24 UTC 2013


#25047: Improve heartbeat queue checking
--------------------------+-----------------------
 Reporter:  evansolomon   |       Owner:  azaozz
     Type:  defect (bug)  |      Status:  assigned
 Priority:  normal        |   Milestone:  3.7
Component:  General       |     Version:
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |
--------------------------+-----------------------

Comment (by evansolomon):

 Replying to [comment:3 azaozz]:
 > On the other hand `wp.heartbeat.isQueued()` should probably return
 'false' for consistency with `wp.heartbeat.enqueue()`.

 This makes sense to me.

 As for the original version, it would have returned something `null`-y,
 but not actually `null`.

 {{{
 var obj = {};
 obj.foo === null;
 // false

 obj.foo == null;
 // true

 obj.foo === undefined;
 // true
 }}}

--
Ticket URL: <http://core.trac.wordpress.org/ticket/25047#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list