Ticket #12480: bmb_0009_t12480.patch
File bmb_0009_t12480.patch, 1.6 KB (added by , 15 years ago) |
---|
-
wp-includes/default-filters.php
128 128 add_filter( 'comment_text', 'convert_chars' ); 129 129 add_filter( 'comment_text', 'make_clickable', 9 ); 130 130 add_filter( 'comment_text', 'force_balance_tags', 25 ); 131 add_filter( 'comment_text', 'fill_empty_links', 24 ); 131 132 add_filter( 'comment_text', 'convert_smilies', 20 ); 132 133 add_filter( 'comment_text', 'wpautop', 30 ); 133 134 -
wp-includes/formatting.php
1094 1094 } 1095 1095 1096 1096 /** 1097 * Adds blank string to all HTML A empty elements in content. 1098 * 1099 * @since 2.9.2 1100 * 1101 * @param string $text Content that may contain HTML A elements. 1102 * @return string Converted content. 1103 */ 1104 function fill_empty_links($text){ 1105 $text = preg_replace_callback('|<a (.+?)>\s*</a>|i', 'fill_empty_links_callback', $text); 1106 return $text; 1107 } 1108 1109 /** 1110 * Callback to used to add blank string to HTML A empty element. 1111 * 1112 * @since 2.9.2 1113 * 1114 * @param array $matches Single Match 1115 * @return string HTML A Element with blank text. 1116 */ 1117 function fill_empty_links_callback( $matches ) { 1118 $text = $matches[1]; 1119 return "<a $text >blank</a>"; 1120 } 1121 1122 /** 1097 1123 * Acts on text which is about to be edited. 1098 1124 * 1099 1125 * Unless $richedit is set, it is simply a holder for the 'format_to_edit'