mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
Bootstrap: do not go gentle into that good night r38411, r38412, and parts of r38389.
See #36335. git-svn-id: https://develop.svn.wordpress.org/trunk@38470 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -563,6 +563,8 @@ function do_enclose( $content, $post_ID ) {
|
||||
global $wpdb;
|
||||
|
||||
//TODO: Tidy this ghetto code up and make the debug code optional
|
||||
include_once( ABSPATH . WPINC . '/class-IXR.php' );
|
||||
|
||||
$post_links = array();
|
||||
|
||||
$pung = get_enclosed( $post_ID );
|
||||
@@ -2863,18 +2865,18 @@ function _xmlrpc_wp_die_handler( $message, $title = '', $args = array() ) {
|
||||
* @since 3.4.0
|
||||
* @access private
|
||||
*
|
||||
* @param string $message Error message.
|
||||
* @param string $title Optional. Error title (unused). Default empty.
|
||||
* @param string|array $args Optional. Arguments to control behavior. Default empty array.
|
||||
*/
|
||||
function _ajax_wp_die_handler( $message, $title = '', $args = array() ) {
|
||||
$defaults = array(
|
||||
'response' => 200,
|
||||
);
|
||||
$r = wp_parse_args( $args, $defaults );
|
||||
* @param string $message Error message.
|
||||
* @param string $title Optional. Error title (unused). Default empty.
|
||||
* @param string|array $args Optional. Arguments to control behavior. Default empty array.
|
||||
*/
|
||||
function _ajax_wp_die_handler( $message, $title = '', $args = array() ) {
|
||||
$defaults = array(
|
||||
'response' => 200,
|
||||
);
|
||||
$r = wp_parse_args( $args, $defaults );
|
||||
|
||||
if ( ! headers_sent() ) {
|
||||
status_header( $r['response'] );
|
||||
if ( ! headers_sent() ) {
|
||||
status_header( $r['response'] );
|
||||
}
|
||||
if ( is_scalar( $message ) )
|
||||
die( (string) $message );
|
||||
|
||||
Reference in New Issue
Block a user