Multi-byte character safe excerpting from nbachiyski. fixes #6077

git-svn-id: http://svn.automattic.com/wordpress/trunk@7140 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan
2008-03-03 21:05:23 +00:00
parent b1f0a853da
commit 6e181bb941
6 changed files with 56 additions and 19 deletions

View File

@@ -335,10 +335,7 @@ function wp_dashboard_incoming_links_output() {
$content = $item['atom_content'];
else
$content = __( 'something' );
$content = strip_tags( $content );
if ( 50 < strlen($content) )
$content = substr($content, 0, 50) . ' ...';
$content = wp_specialchars( $content );
$content = wp_html_excerpt($content, 50) . ' ...';
if ( $link )
$text = _c( '%1$s linked here <a href="%2$s">saying</a>, "%3$s"|feed_display' );
else