Make WordPress Core

Changeset 17643 for trunk/xmlrpc.php


Ignore:
Timestamp:
04/17/2011 08:35:51 AM (15 years ago)
Author:
westi
Message:

Introduce a special wp_die handler for XMLRPC requests to ensure we send an XML response.
Props koke for the original patch. See #16748.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/xmlrpc.php

    r17642 r17643  
    9999    logIO("I", $HTTP_RAW_POST_DATA);
    100100
     101// Make sure wp_die output is XML
     102add_filter( 'wp_die_handler', '_xmlrpc_wp_die_filter' );
     103
    101104// Allow for a plugin to insert a different class to handle requests.
    102105$wp_xmlrpc_server_class = apply_filters('wp_xmlrpc_server_class', 'wp_xmlrpc_server');
Note: See TracChangeset for help on using the changeset viewer.