Dashboard validation fixes from Viper007Bond and mdawaffe. fixes #7064

git-svn-id: https://develop.svn.wordpress.org/trunk@8016 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2008-05-30 15:59:14 +00:00
parent 9755b98195
commit b696c840eb
1 changed files with 1 additions and 2 deletions

View File

@ -389,8 +389,7 @@ function wp_dashboard_secondary_output() {
$rss->items = array_slice($rss->items, 0, $items);
foreach ($rss->items as $item ) {
$title = wp_specialchars($item['title']);
$author = preg_replace( '|(.+?):.+|s', '$1', $item['title'] );
$post = preg_replace( '|.+?:(.+)|s', '$1', $item['title'] );
list($author,$post) = explode( ':', $title, 2 );
$link = clean_url($item['link']);
echo "\t<li><a href='$link'><span class='post'>$post</span><span class='hidden'> - </span><cite>$author</cite></a></li>\n";