WP 2.0 tag and attribute stripping (3 posts)

  1. chipster
    Posted 10 years ago #

    Here's my dilemma with WP 2.0;

    When posting an article via XMLRPC (ala Ecto), my tag classes/attributes, and some tags get stripped.

    Code in blog editor:
    <div class="foo"><cite>Bar</cite></div>

    Code after publish:

    But editing a post directly in the WP admin post editor works fine (no stripping). What gives?

  2. chipster
    Posted 10 years ago #

    Answering my own post for the benefit of others:

    I had to add a couple of arrays ("allowedposttags") to my wp-includes/kses.php file.

    I added them to the beginning of the array, like this;

    $allowedposttags = array(
    'cite' => array(),
    'div' => array('class' => array(), 'align' => array())

    Completely non-elegant ;-)

  3. aemilius
    Posted 10 years ago #

    mms:// error

    Code in blog editor:
    <a href="mms : // url">text</a>

    Code after publish:
    <a href=" // url">text</a>

Topic Closed

This topic has been closed to new replies.

About this Topic