WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #23216, comment 24


Ignore:
Timestamp:
01/20/2013 10:31:12 PM (5 years ago)
Author:
azaozz
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #23216, comment 24

    initial v1  
    1818{{{
    1919function wp_poll() {
    20         $out = '';
    2120
    2221        for ( $i = 0; $i < 5; $i++ ) {
     
    2423
    2524                if ( ! empty($val) ) {
    26                         echo JSON.encode($val);
     25                        echo json_encode($val);
    2726                        exit;
    2827                }
     
    3130        }
    3231
    33         echo $out;
     32        echo '0';
    3433        exit;
    3534}