WordPress.org

Make WordPress Core

Ticket #6967: wpWordCount-detection-fix.patch

File wpWordCount-detection-fix.patch, 536 bytes (added by ramenboy, 10 years ago)

Patch: wpWordCount detection fix

  • plugins/wordpress/editor_plugin.js

     
    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;