OSDN Git Service

Apply default filters in content in `wp post edit`
authorgoldenapples <goldenapplesdesign@gmail.com>
Fri, 27 Sep 2013 19:09:20 +0000 (12:09 -0700)
committergoldenapples <goldenapplesdesign@gmail.com>
Fri, 27 Sep 2013 19:20:18 +0000 (12:20 -0700)
commitf592cff085f7279d7319d111e26fdf1ae488d731
tree9fede9583d68dc39d092b316421caf91700102da
parentf89c6f51d71fe0ff50773c6055d709d4ae61402a
Apply default filters in content in `wp post edit`

I noticed that without applying the `the_editor_content` and
`content_save_pre` filters to the post content being edited, unexpected
things could happen when editing posts with the system editor. For
example, the Syntaxhighlighter Extended plugin uses these filters cto
decode entities when retrieving a post from that database to edit, and
then re-encode them on save.

There may be some extra thought required as to what the expected behavior
should be, but this apporach seems to make the most sense to me.
php/commands/post.php