Changeset 38334 for trunk/src/wp-includes/load.php
- Timestamp:
- 08/23/2016 02:32:18 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/load.php
r38239 r38334 335 335 } 336 336 337 if ( defined( 'XMLRPC_REQUEST' ) || defined( 'REST_REQUEST' ) || ( defined( 'DOING_AJAX' ) && DOING_AJAX) ) {337 if ( defined( 'XMLRPC_REQUEST' ) || defined( 'REST_REQUEST' ) || wp_doing_ajax() ) { 338 338 @ini_set( 'display_errors', 0 ); 339 339 } … … 1028 1028 return false; 1029 1029 } 1030 1031 /** 1032 * Determines whether the current request is a WordPress Ajax request. 1033 * 1034 * @since 4.7.0 1035 * 1036 * @return bool True if it's a WordPress Ajax request, false otherwise. 1037 */ 1038 function wp_doing_ajax() { 1039 /** 1040 * Filter whether the current request is a WordPress Ajax request. 1041 * 1042 * @since 4.7.0 1043 * 1044 * @param bool $wp_doing_ajax Whether the current request is a WordPress Ajax request. 1045 */ 1046 return apply_filters( 'wp_doing_ajax', defined( 'DOING_AJAX' ) && DOING_AJAX ); 1047 }
Note: See TracChangeset
for help on using the changeset viewer.