Make WordPress Core

Changeset 7991 for trunk/xmlrpc.php


Ignore:
Timestamp:
05/25/2008 03:50:15 PM (18 years ago)
Author:
ryan
Message:

File file level phpdoc from jacobsantos. see #7037

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/xmlrpc.php

    r7971 r7991  
    11<?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 */
    314define('XMLRPC_REQUEST', true);
    415
     
    1223}
    1324
    14 # fix for mozBlog and other cases where '<?xml' isn't on the very first line
     25// fix for mozBlog and other cases where '<?xml' isn't on the very first line
    1526if ( isset($HTTP_RAW_POST_DATA) )
    1627    $HTTP_RAW_POST_DATA = trim($HTTP_RAW_POST_DATA);
    1728
     29/** Include the bootstrap for setting up WordPress environment */
    1830include('./wp-load.php');
    1931
     
    4658// error_reporting(0);
    4759
    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 */
    5073$xmlrpc_logging = 0;
    5174
     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 */
    5286function logIO($io,$msg) {
    5387    global $xmlrpc_logging;
     
    6397
    6498if ( 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 */
    67108class wp_xmlrpc_server extends IXR_Server {
    68109
Note: See TracChangeset for help on using the changeset viewer.