google-code-export / wordpress-custom-content-type-manager

Automatically exported from code.google.com/p/wordpress-custom-content-type-manager
2 stars 1 forks source link

The 'post_content' is stripped #454

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I noticed that if trying to programmatically create/update a post
through SP_Post's interface, the 'post_content' field is always
filtered as plain text (any HTML tags are stripped). 

Looking into the source code at includes/SP_Post.php i realized that a
subset (including 'post_content') of core post fields is sanitized passing
through the _text() method that in turn invokes wp_kses(x, array()). 

Maybe 'post_content' should be filtered by wp_kses_post(), allowing
ordinary HTML tags to be present. 

Michail Alexakis, software engineer, Athens, Greece   

Congratulations and continue the good work! The CCTM plugin
is really a valuable tool. 

*SYSTEM INFO* 
------------------------ 
Plugin Version: 0.9.6.7-pl
WordPress Version: 3.5
PHP Version: 5.3.3-7+squeeze13
MySQL Version: 5.1.63-0+squeeze1
Server OS: Linux
------------------------ 
ACTIVE PLUGINS: 
 * Root Relative URLs v.1.7 [http://www.marcuspope.com/wordpress/]
------------------------ 
CURRENT THEME: Twenty Twelve v.1.1 
http://wordpress.org/extend/themes/twentytwelve

Original issue reported on code.google.com by drmale...@gmail.com on 8 Feb 2013 at 7:49

GoogleCodeExporter commented 9 years ago
Thanks for the bug report!  I'll incorporate this into the next version.

Original comment by fireproofsocks on 8 Feb 2013 at 8:08

GoogleCodeExporter commented 9 years ago
Committed revision 665475.

Original comment by fireproofsocks on 9 Feb 2013 at 1:21