Ticket #46813: 46813.diff
File 46813.diff, 1.0 KB (added by , 6 years ago) |
---|
-
functions.php
2964 2964 */ 2965 2965 function wp_die( $message = '', $title = '', $args = array() ) { 2966 2966 2967 global $wp_query; 2968 2967 2969 if ( is_int( $args ) ) { 2968 2970 $args = array( 'response' => $args ); 2969 2971 } elseif ( is_int( $title ) ) { … … 3008 3010 */ 3009 3011 $function = apply_filters( 'wp_die_xmlrpc_handler', '_xmlrpc_wp_die_handler' ); 3010 3012 } elseif ( wp_is_xml_request() 3011 || function_exists( 'is_feed' ) && is_feed()3012 || function_exists( 'is_comment_feed' ) && is_comment_feed()3013 || function_exists( 'is_trackback' ) && is_trackback() ) {3013 || isset( $wp_query ) && function_exists( 'is_feed' ) && is_feed() 3014 || isset( $wp_query ) && function_exists( 'is_comment_feed' ) && is_comment_feed() 3015 || isset( $wp_query ) && function_exists( 'is_trackback' ) && is_trackback() ) { 3014 3016 /** 3015 3017 * Filters the callback for killing WordPress execution for XML requests. 3016 3018 *