From ed30026ce82957a0b729648f3e3ef648606c9d7f Mon Sep 17 00:00:00 2001 From: ryan Date: Tue, 3 Jun 2008 08:13:33 +0000 Subject: [PATCH] Word count fix from azaozz. fixes #6991 git-svn-id: http://svn.automattic.com/wordpress/trunk@8035 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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, ' ' );