WordPress.org

Make WordPress Core


Ignore:
Timestamp:
01/13/2006 07:19:09 PM (16 years ago)
Author:
ryan
Message:

Make the xmlrpc user the current user. fixes #2273

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/kses.php

    r3429 r3430  
    531531    global $current_user;
    532532
    533     get_currentuserinfo(); // set $current_user
     533    remove_filter('pre_comment_author', 'wp_filter_kses');
     534    remove_filter('pre_comment_content', 'wp_filter_kses');
     535    remove_filter('content_save_pre', 'wp_filter_post_kses');
     536    remove_filter('title_save_pre', 'wp_filter_kses');
     537
     538    if (! defined('XMLRPC_REQUEST') )
     539        get_currentuserinfo();
     540
    534541    if (current_user_can('unfiltered_html') == false)
    535542        kses_init_filters();
    536543}
    537544add_action('init', 'kses_init');
     545add_action('set_current_user', 'kses_init');
    538546?>
Note: See TracChangeset for help on using the changeset viewer.