Ticket #6967: wpWordCount-detection-fix.patch

File wpWordCount-detection-fix.patch, 0.5 kB (added by ramenboy, 7 months ago)

Patch: wpWordCount detection fix

  • plugins/wordpress/editor_plugin.js

    old new  
    133133                        }); 
    134134 
    135135            // Word count if script is loaded 
    136             if ( 'undefined' != wpWordCount ) { 
     136            if ( 'undefined' != typeof wpWordCount ) { 
    137137                var last = 0; 
    138138                ed.onKeyUp.add(function(ed, e) { 
    139139                    if ( e.keyCode == last ) return;