Make WordPress Core

Changeset 32030


Ignore:
Timestamp:
04/05/2015 02:59:35 PM (10 years ago)
Author:
DrewAPicture
Message:

Add inline doc syntax fixes for WP_Customize_Manager->doing_ajax().

Also adds a return description.

See [31370]. See #31888.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-customize-manager.php

    r31975 r32030  
    118118     *
    119119     * @since 3.4.0
    120      * @since 4.2.0 Added $action param.
    121      *
    122      * @param string|null $action whether the supplied Ajax action is being run.
    123      * @return bool
     120     * @since 4.2.0 Added `$action` param.
     121     *
     122     * @param string|null $action Whether the supplied AJAX action is being run.
     123     * @return bool True if it's an AJAX request, false otherwise.
    124124     */
    125125    public function doing_ajax( $action = null ) {
     
    132132            return true;
    133133        } else {
    134             // Note: we can't just use doing_action( "wp_ajax_{$action}" ) because we need to check before admin-ajax.php gets to that point
     134            /*
     135             * Note: we can't just use doing_action( "wp_ajax_{$action}" ) because we need
     136             * to check before admin-ajax.php gets to that point.
     137             */
    135138            return isset( $_REQUEST['action'] ) && wp_unslash( $_REQUEST['action'] ) === $action;
    136139        }
Note: See TracChangeset for help on using the changeset viewer.