Make WordPress Core

Changeset 6634


Ignore:
Timestamp:
01/18/2008 07:52:15 AM (17 years ago)
Author:
westi
Message:

Add some more actions to xmlrpc. Fixes #5686 props joesephscott.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/xmlrpc.php

    r6596 r6634  
    6969if ( isset($HTTP_RAW_POST_DATA) )
    7070  logIO("I", $HTTP_RAW_POST_DATA);
    71 
    7271
    7372class wp_xmlrpc_server extends IXR_Server {
     
    664663        set_current_user(0, $username);
    665664        if( !current_user_can( 'edit_posts' ) )
    666             return new IXR_Error( 401, __( 'Sorry, you must be able to publish to this blog in order to view categories.' ) );
     665            return new IXR_Error( 401, __( 'Sorry, you must be able to edit posts to this blog in order to view categories.' ) );
    667666
    668667        do_action('xmlrpc_call', 'wp.suggestCategories');
     
    697696        }
    698697
     698        do_action('xmlrpc_call', 'wp.getCommentCount');
     699
    699700        return get_comment_count( $post_id );
    700701    }
     
    717718        }
    718719
     720        do_action('xmlrpc_call', 'wp.getPostStatusList');
     721
    719722        return get_post_statuses( );
    720723    }
     
    736739            return new IXR_Error( 403, __( 'You are not allowed acces to details about this blog.' ) );
    737740        }
     741
     742        do_action('xmlrpc_call', 'wp.getPageStatusList');
    738743
    739744        return get_page_statuses( );
     
    18971902        }
    18981903
     1904        do_action('xmlrpc_call', 'mt.getRecentPostTitles');
     1905
    18991906        $posts_list = wp_get_recent_posts($num_posts);
    19001907
     
    20492056         support per-post text filters yet */
    20502057    function mt_supportedTextFilters($args) {
     2058        do_action('xmlrpc_call', 'mt.supportedTextFilters');
    20512059        return apply_filters('xmlrpc_text_filters', array());
    20522060    }
Note: See TracChangeset for help on using the changeset viewer.