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

WordPress Trac noreply at wordpress.org
Mon Aug 19 23:19:09 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 azaozz):

 Yep, the idea sounds good. There's a typo `queue.isQueued` should be
 `this.isQueued`. Also there is no need to do
 {{{
 if (! queue.hasOwnProperty( handle ))
     return null;
 }}}

 As `queue` is a simple object, `return queue[handle];` returns `null` if
 handle doesn't exist in queue.

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


More information about the wp-trac mailing list