wp/wp-includes/IXR/class-IXR-server.php
changeset 18 be944660c56a
parent 16 a86126ab1dd4
equal deleted inserted replaced
17:34716fd837a4 18:be944660c56a
   127     {
   127     {
   128         // Accepts either an error object or an error code and message
   128         // Accepts either an error object or an error code and message
   129         if ($message && !is_object($error)) {
   129         if ($message && !is_object($error)) {
   130             $error = new IXR_Error($error, $message);
   130             $error = new IXR_Error($error, $message);
   131         }
   131         }
       
   132 
   132         $this->output($error->getXml());
   133         $this->output($error->getXml());
   133     }
   134     }
   134 
   135 
   135     function output($xml)
   136     function output($xml)
   136     {
   137     {