Changeset 7991 for trunk/xmlrpc.php
- Timestamp:
- 05/25/2008 03:50:15 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/xmlrpc.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/xmlrpc.php
r7971 r7991 1 1 <?php 2 2 /** 3 * XML-RPC protocol support for WordPress 4 * 5 * @license GPL v2 <./license.txt> 6 * @package WordPress 7 */ 8 9 /** 10 * Whether this is a XMLRPC Request 11 * 12 * @var bool 13 */ 3 14 define('XMLRPC_REQUEST', true); 4 15 … … 12 23 } 13 24 14 #fix for mozBlog and other cases where '<?xml' isn't on the very first line25 // fix for mozBlog and other cases where '<?xml' isn't on the very first line 15 26 if ( isset($HTTP_RAW_POST_DATA) ) 16 27 $HTTP_RAW_POST_DATA = trim($HTTP_RAW_POST_DATA); 17 28 29 /** Include the bootstrap for setting up WordPress environment */ 18 30 include('./wp-load.php'); 19 31 … … 46 58 // error_reporting(0); 47 59 48 $post_default_title = ""; // posts submitted via the xmlrpc interface get that title 49 60 /** 61 * Posts submitted via the xmlrpc interface get that title 62 * @name post_default_title 63 * @var string 64 */ 65 $post_default_title = ""; 66 67 /** 68 * Whether to enable XMLRPC Logging. 69 * 70 * @name xmlrpc_logging 71 * @var int|bool 72 */ 50 73 $xmlrpc_logging = 0; 51 74 75 /** 76 * logIO() - Writes logging info to a file. 77 * 78 * @uses $xmlrpc_logging 79 * @package WordPress 80 * @subpackage Logging 81 * 82 * @param string $io Whether input or output 83 * @param string $msg Information describing logging reason. 84 * @return bool Always return true 85 */ 52 86 function logIO($io,$msg) { 53 87 global $xmlrpc_logging; … … 63 97 64 98 if ( isset($HTTP_RAW_POST_DATA) ) 65 logIO("I", $HTTP_RAW_POST_DATA); 66 99 logIO("I", $HTTP_RAW_POST_DATA); 100 101 /** 102 * @internal 103 * Left undocumented to work on later. If you want to finish, then please do so. 104 * 105 * @package WordPress 106 * @subpackage Publishing 107 */ 67 108 class wp_xmlrpc_server extends IXR_Server { 68 109
Note: See TracChangeset
for help on using the changeset viewer.