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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user