From 4bc17916a45680b57b6d38b59f92762c9d74c334 Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Sun, 5 Apr 2015 14:59:35 +0000 Subject: [PATCH] Add inline doc syntax fixes for `WP_Customize_Manager->doing_ajax()`. Also adds a return description. See [31370]. See #31888. git-svn-id: https://develop.svn.wordpress.org/trunk@32030 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/class-wp-customize-manager.php | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/wp-includes/class-wp-customize-manager.php b/src/wp-includes/class-wp-customize-manager.php index 0baf2bc178..a61292732e 100644 --- a/src/wp-includes/class-wp-customize-manager.php +++ b/src/wp-includes/class-wp-customize-manager.php @@ -117,10 +117,10 @@ final class WP_Customize_Manager { * Return true if it's an AJAX request. * * @since 3.4.0 - * @since 4.2.0 Added $action param. + * @since 4.2.0 Added `$action` param. * - * @param string|null $action whether the supplied Ajax action is being run. - * @return bool + * @param string|null $action Whether the supplied AJAX action is being run. + * @return bool True if it's an AJAX request, false otherwise. */ public function doing_ajax( $action = null ) { $doing_ajax = ( defined( 'DOING_AJAX' ) && DOING_AJAX ); @@ -131,7 +131,10 @@ final class WP_Customize_Manager { if ( ! $action ) { return true; } else { - // Note: we can't just use doing_action( "wp_ajax_{$action}" ) because we need to check before admin-ajax.php gets to that point + /* + * Note: we can't just use doing_action( "wp_ajax_{$action}" ) because we need + * to check before admin-ajax.php gets to that point. + */ return isset( $_REQUEST['action'] ) && wp_unslash( $_REQUEST['action'] ) === $action; } }