Un motore di ricerca WordPress per sviluppatori e autori di temi



_xmlrpc_wp_die_handler ›

Da3.2.0
Deprecaton/a
_xmlrpc_wp_die_handler ( $message, $title = '', $args = array() )
Accedi:
  • private
Parametri: (3)
  • (string) $message Error message.
    Richiesto:
  • (string) $title Optional. Error title. Default empty.
    Richiesto: No
    Default: (vuoto)
  • (string|array) $args Optional. Arguments to control behavior. Default empty array.
    Richiesto: No
    Default: array()
Definito a:
Codex:

Kills WordPress execution and displays XML response with an error message.

This is the handler for wp_die() when processing XMLRPC requests.



Sorgenti

function _xmlrpc_wp_die_handler( $message, $title = '', $args = array() ) {
	global $wp_xmlrpc_server;

	list( $message, $title, $r ) = _wp_die_process_input( $message, $title, $args );

	if ( ! headers_sent() ) {
		nocache_headers();
	}

	if ( $wp_xmlrpc_server ) {
		$error = new IXR_Error( $r['response'], $message );
		$wp_xmlrpc_server->output( $error->getXml() );
	}
	if ( $r['exit'] ) {
		die();
	}
}