Some tag attributes get removed when saving post in Wordpress
Wednesday, October 29th, 2008I recently started using Google Syntax Highlighter plugin for WordPress and noticed that name and class attributes get removed when a user under author profile saves a post.
To fix this you have to edit wp-includes/kses.php file by adding two lines of code
‘pre’ => array(
‘name’ => array(), // added
‘class’ => array(), // added
’style’ => [...]