Simple WYMeditor and WordPress 2.6

I love WYMeditor, it is by far the best Javascript text editor I have used.  As I have written before, I use the Simple WYMeditor plugin so I can have WYMeditor in my WordPress installation.

However, when I upgraded to WordPress 2.6 it stopped working for me.  There is no new version of Simple WYMeditor as yet, but this little fix worked for me.

Simply change line 69 from this:

69 if ( strpos($wp_version, '2.5') !== false ) {

to this:

69 if ( $wp_version >= "2.5" ) {

Enjoy!

2 Responses to “Simple WYMeditor and WordPress 2.6”


  1. 1 Alexander Graf

    Sweet! I didn’t think the fix would be THAT simple. Being at work, I didn’t take the time to fiddle around with the code, assuming it was WP’s fault.

    Thanks a lot and greetings from Austria,
    Alexander Graf

  2. 2 Amaury

Leave a Reply