[wp-trac] [WordPress Trac] #23216: Create "WP Heartbeat" API

WordPress Trac noreply at wordpress.org
Mon May 27 03:59:29 UTC 2013


#23216: Create "WP Heartbeat" API
----------------------------+------------------
 Reporter:  azaozz          |       Owner:
     Type:  task (blessed)  |      Status:  new
 Priority:  normal          |   Milestone:  3.6
Component:  Administration  |     Version:
 Severity:  normal          |  Resolution:
 Keywords:  autosave-redo   |
----------------------------+------------------

Comment (by nacin):

 azaozz, this try/catch still results in a warning in the console on every
 heartbeat. Way around that?
 {{{
                 function isLocalFrame(frame) {
                         try {
                                 if ( frame.contentWindow.document )
 // Blocked a frame with origin "https://make.wordpress.org" from accessing
 a frame with origin "https://jetpack.wordpress.com". Protocols, domains,
 and ports must match.
                                         return true;
                         } catch(e) {}

                         return false;
                 }
 }}}

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


More information about the wp-trac mailing list