<?php
function add_marquee() {
global $allowedposttags;
$moreallowedposttags = array (
'center' => array(),
'font' => array(
'face' => array(),
'size' => array(),
'color' => array()
),
'marquee' => array(
'behavior' => array(),
'bgcolor' => array(),
'direction' => array(),
'height' => array(),
'hspace' => array(),
'loop' => array(),
'scrollamount' => array(),
'scrolldelay' => array(),
'truespeed' => array(),
'vspace' => array(),
'width' => array()
),
'table' => array(
'background' => array(),
'border' => array(),
'height' => array(),
'style' => array(),
'width' => array()
)
);
foreach ($allowedposttags as $tag => $attr) {
$attr['class'] = array();
$attr['id'] = array();
$allowedposttags[$tag] = $attr;
}
return array_merge($allowedposttags, $moreallowedposttags);
}
add_filter('edit_allowedposttags', 'add_marquee');
?>