Changes between Version 3 and Version 4 of Ticket #23216, comment 24
- Timestamp:
- 01/21/2013 12:09:21 AM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #23216, comment 24
v3 v4 15 15 '''Long polling''' 16 16 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):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 recursion): 18 18 19 19 {{{ 20 20 function wp_poll() { 21 21 22 for ( $i = 0; $i < 5; $i++ ) {22 for ( $i = 0; $i < 10; $i++ ) { 23 23 $val = apply_filters( 'wp_poll', array() ); 24 24