From 0eaf1ee390bdcfcf616c5e3dd8d688165c69c0f6 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Tue, 3 Jun 2008 08:13:33 +0000 Subject: [PATCH] Word count fix from azaozz. fixes #6991 git-svn-id: https://develop.svn.wordpress.org/trunk@8035 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/js/word-count.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-admin/js/word-count.js b/wp-admin/js/word-count.js index 6be48ba506..9e3c1dff74 100644 --- a/wp-admin/js/word-count.js +++ b/wp-admin/js/word-count.js @@ -21,7 +21,7 @@ if ( t.block ) return; t.block = 1; - tx = tx.replace( /^\s*|\s*$/g, '' ); + setTimeout( function() { if ( tx ) { tx = tx.replace( /<.[^<>]*?>/g, ' ' ).replace( / /gi, ' ' );