WordPress.org

Make WordPress Core

Changes between Version 3 and Version 4 of Ticket #23216, comment 24


Ignore:
Timestamp:
01/21/2013 12:09:21 AM (5 years ago)
Author:
azaozz
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #23216, comment 24

    v3 v4  
    1515'''Long polling'''
    1616
    17 In essence it would look something like this on the PHP side (on the JS side this is a standard XHR that runs in a loop):
     17In essence it would look something like this on the PHP side (on the JS side this is a standard XHR that runs in recursion):
    1818
    1919{{{
    2020function wp_poll() {
    2121
    22         for ( $i = 0; $i < 5; $i++ ) {
     22        for ( $i = 0; $i < 10; $i++ ) {
    2323                $val = apply_filters( 'wp_poll', array() );
    2424