CoreFiles by mySites.guru
word-count.js1 lines, 579 bytes, from wordpress-3.4.zip
Raw History Compare with 3.3.3
md5
bd315c9a2ccbf08260689037e63721ad
sha1
0277c6952171c8c78c9028c35370f2443e237bb6
sha256
3c41cbc180ed0069e0b2f645b69cdbff6d73f08d8e8a798420f61e6e9f11842f
(function(a,b){wpWordCount={settings:{strip:/<[a-zA-Z\/][^<>]*>/g,clean:/[0-9.(),;:!?%#$¿'"_+=\\/-]+/g,w:/\S\s+/g,c:/\S/g},block:0,wc:function(e,g){var f=this,d=a(".word-count"),c=0;if(g===b){g=wordCountL10n.type}if(g!=="w"&&g!=="c"){g="w"}if(f.block){return}f.block=1;setTimeout(function(){if(e){e=e.replace(f.settings.strip," ").replace(/&nbsp;|&#160;/gi," ");e=e.replace(f.settings.clean,"");e.replace(f.settings[g],function(){c++})}d.html(c.toString());setTimeout(function(){f.block=0},2000)},1)}};a(document).bind("wpcountwords",function(d,c){wpWordCount.wc(c)})}(jQuery));

The same content is in 11 releases, WordPress 3.4-beta1 to 3.4.2. See them all, or every version of this file.