Index: wp-includes/default-filters.php
===================================================================
--- wp-includes/default-filters.php (revision 14200)
+++ wp-includes/default-filters.php (working copy)
@@ -128,6 +128,7 @@
add_filter( 'comment_text', 'convert_chars' );
add_filter( 'comment_text', 'make_clickable', 9 );
add_filter( 'comment_text', 'force_balance_tags', 25 );
+add_filter( 'comment_text', 'fill_empty_links', 24 );
add_filter( 'comment_text', 'convert_smilies', 20 );
add_filter( 'comment_text', 'wpautop', 30 );
Index: wp-includes/formatting.php
===================================================================
--- wp-includes/formatting.php (revision 14200)
+++ wp-includes/formatting.php (working copy)
@@ -1094,6 +1094,19 @@
}
/**
+ * Adds blank string to all HTML A empty elements in content.
+ *
+ * @since 3.0.0
+ *
+ * @param string $text Content that may contain HTML A elements.
+ * @return string Converted content.
+ */
+function fill_empty_links( $text )
+{
+ return preg_replace_callback( '#[\s|\ ]*#i', create_function('$matches','if( $matches[1] ) return "blank";'), $text);
+}
+
+/**
* Acts on text which is about to be edited.
*
* Unless $richedit is set, it is simply a holder for the 'format_to_edit'