allowed_tags function not working anymore.
-
hi, I just tried your plugin, seems like the allowed tags function not working any more. sse the code below plz:
add_filter( ‘admin_init’, ‘allowed_tags’ );
function allowed_tags() {
global $allowedposttags;
$allowedposttags[‘video’][‘src’] = array();
$allowedposttags[‘video’][‘type’] = array();
$allowedposttags[‘video’][‘poster’] = array();
}when i save into functions.php, the wordpress back-end become blank. When I turn on the WP_DEBUG, it shows:
Fatal error: Cannot redeclare allowed_tags() (previously declared in /Applications/MAMP/htdocs/artwise/wp-includes/general-template.php:1359) in /Applications/MAMP/htdocs/artwise/wp-content/themes/artwise/functions.php on line 974
plz advise.
- The topic ‘allowed_tags function not working anymore.’ is closed to new replies.