Added more API hooks for edit and post formatting.
git-svn-id: http://svn.automattic.com/wordpress/trunk@1052 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
ce9a20e9e7
commit
3402b5aa08
|
@ -234,6 +234,7 @@ function unautobrize($content) {
|
|||
|
||||
function format_to_edit($content) {
|
||||
$content = stripslashes($content);
|
||||
$content = apply_filters('format_to_edit', $content);
|
||||
$content = htmlspecialchars($content);
|
||||
return $content;
|
||||
}
|
||||
|
@ -241,6 +242,7 @@ function format_to_edit($content) {
|
|||
function format_to_post($content) {
|
||||
global $wpdb;
|
||||
$content = stripslashes(stripslashes($content));
|
||||
$content = apply_filters('format_to_post', $content);
|
||||
$content = $wpdb->escape($content);
|
||||
return $content;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue