mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-02 00:00:15 +00:00
Don't hard code post type in edit forms. Props filosofo and DD32. fixes #4991
git-svn-id: https://develop.svn.wordpress.org/trunk@6712 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -62,6 +62,12 @@ foreach ( $filters as $filter ) {
|
||||
add_filter($filter, 'sanitize_title');
|
||||
}
|
||||
|
||||
// Keys
|
||||
$filters = array('pre_post_type');
|
||||
foreach ( $filters as $filter ) {
|
||||
add_filter($filter, 'sanitize_user');
|
||||
}
|
||||
|
||||
// Places to balance tags on input
|
||||
$filters = array('content_save_pre', 'excerpt_save_pre', 'comment_save_pre', 'pre_comment_content');
|
||||
foreach ( $filters as $filter ) {
|
||||
|
||||
Reference in New Issue
Block a user