Make WordPress Core

Changeset 24819


Ignore:
Timestamp:
07/28/2013 08:55:53 PM (12 years ago)
Author:
azaozz
Message:

Add "experimental" to heartbeat phpdoc, fixes #24855 for 3.6.

Location:
branches/3.6
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/3.6/wp-admin/includes/ajax-actions.php

    r24790 r24819  
    99/*
    1010 * No-privilege Ajax handlers.
     11 */
     12
     13/**
     14 * Heartbeat API (experimental)
     15 *
     16 * Runs when the user is not logged in.
    1117 */
    1218function wp_ajax_nopriv_heartbeat() {
     
    20532059}
    20542060
     2061/**
     2062 * Heartbeat API (experimental)
     2063 *
     2064 * Runs when the user is logged in.
     2065 */
    20552066function wp_ajax_heartbeat() {
    20562067    if ( empty( $_POST['_nonce'] ) )
     
    20732084    if ( ! empty($_POST['data']) ) {
    20742085        $data = (array) $_POST['data'];
    2075 
    2076         // todo: separate filters: 'heartbeat_[action]' so we call different callbacks only when there is data for them,
    2077         // or all callbacks listen to one filter and run when there is something for them in $data?
    20782086        $response = apply_filters( 'heartbeat_received', $response, $data, $screen_id );
    20792087    }
  • branches/3.6/wp-includes/js/heartbeat.js

    r24749 r24819  
    11/**
    22 * Heartbeat API
     3 *
     4 * Note: this API is "experimental" meaning it will likely change a lot
     5 * in the next few releases based on feedback from 3.6.0. If you intend
     6 * to use it, please follow the development closely.
    37 *
    48 * Heartbeat is a simple server polling API that sends XHR requests to
     
    4852         *
    4953         * @returns boolean
    50          * @private
    5154         */
    5255        this.hasConnectionError = function() {
Note: See TracChangeset for help on using the changeset viewer.