Forums

[Resolved] removing <object tags> using xmlrpc.php (2 posts)

  1. freebee99
    Member
    Posted 5 years ago #

    I've seen posts regarding the problem with wordpress removing certain tags on posts, but I'm trying to post using the metaweblog api and the xmlrpc.php file.

    I can successfully posted from a remote site using the api, but when I try to post something with an object tag (javescript or flash) wordpress strips the tags...

    I have fully commented out the wp-includes/default-filters so it is not that, unless I have to specifically state to remove filter.

    What file should I look at to allow me to insert un-filtered html using the xmlrpc.php file?

  2. freebee99
    Member
    Posted 5 years ago #

    I did a search for filters and found this page:
    http://codex.wordpress.org/Filters
    I then changed the kses.php file and changed this line:

    add_filter('content_save_pre', 'wp_filter_post_kses');
    to
    remove_filter('content_save_pre', 'wp_filter_post_kses');

    and it works...

Topic Closed

This topic has been closed to new replies.

About this Topic