Changeset 20063 for trunk/wp-includes/functions.php
- Timestamp:
- 03/01/2012 09:35:15 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/functions.php
r20000 r20063 1977 1977 elseif ( defined( 'XMLRPC_REQUEST' ) && XMLRPC_REQUEST ) 1978 1978 $function = apply_filters( 'wp_die_xmlrpc_handler', '_xmlrpc_wp_die_handler' ); 1979 elseif ( defined( 'APP_REQUEST' ) && APP_REQUEST ) 1980 $function = apply_filters( 'wp_die_app_bandler', '_scalar_wp_die_handler' ); 1979 1981 else 1980 1982 $function = apply_filters( 'wp_die_handler', '_default_wp_die_handler' ); … … 2180 2182 die( (string) $message ); 2181 2183 die( '0' ); 2184 } 2185 2186 /** 2187 * Kill WordPress execution. 2188 * 2189 * This is the handler for wp_die when processing APP requests. 2190 * 2191 * @since 3.4.0 2192 * @access private 2193 * 2194 * @param string $message Optional. Response to print. 2195 */ 2196 function _scalar_wp_die_handler( $message = '' ) { 2197 if ( is_scalar( $message ) ) 2198 die( (string) $message ); 2199 die(); 2182 2200 } 2183 2201
Note: See TracChangeset
for help on using the changeset viewer.