Index: formatting.php
===================================================================
--- formatting.php	(revision 15371)
+++ formatting.php	(working copy)
@@ -2826,7 +2826,7 @@
  * @since 3.0.0
  */
 function capital_P_dangit( $text ) {
-	return str_replace( 'Wordpress', 'WordPress', $text );
+	return preg_replace('/word\s*press/i', 'WordPress', $text);
 }
 
 ?>
