Changeset 32030
- Timestamp:
- 04/05/2015 02:59:35 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-customize-manager.php
r31975 r32030 118 118 * 119 119 * @since 3.4.0 120 * @since 4.2.0 Added $actionparam.121 * 122 * @param string|null $action whether the supplied Ajaxaction 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. 124 124 */ 125 125 public function doing_ajax( $action = null ) { … … 132 132 return true; 133 133 } 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 */ 135 138 return isset( $_REQUEST['action'] ) && wp_unslash( $_REQUEST['action'] ) === $action; 136 139 }
Note: See TracChangeset
for help on using the changeset viewer.