WordPress:プラグイン「brBrbr」をTinyMCEに対応させる

CamCamさん作のそのまま改行を表示できるWordPressプラグインbrBrbr:http://camcam.info/wordpress/101

これをビジュアルリッチエディタ(TinyMCE)に対応させる方法。
参考:http://camcam.info/wordpress/224

wp-includes/formatting.php
(2.0x系は wp-includes / functions-formatting.php)

$output = woautop($output);

$output = brBrbr($output);
に修正。

ContentExプラグインを使っている場合は、
brBrbr.phpの

remove_filter(‘the_content’,’wpautop’);
add_filter(‘the_content’,’brBrbr’);

remove_filter(‘the_content_ex’,’wpautop’);
add_filter(‘the_content_ex’,’brBrbr’);

と修正する。