Dashboard validation fixes from Viper007Bond and mdawaffe. fixes #7064

git-svn-id: http://svn.automattic.com/wordpress/trunk@8016 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2008-05-30 15:59:14 +00:00
parent d1073bd67d
commit 8d7b9c3a08
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); $rss->items = array_slice($rss->items, 0, $items);
foreach ($rss->items as $item ) { foreach ($rss->items as $item ) {
$title = wp_specialchars($item['title']); $title = wp_specialchars($item['title']);
$author = preg_replace( '|(.+?):.+|s', '$1', $item['title'] ); list($author,$post) = explode( ':', $title, 2 );
$post = preg_replace( '|.+?:(.+)|s', '$1', $item['title'] );
$link = clean_url($item['link']); $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"; echo "\t<li><a href='$link'><span class='post'>$post</span><span class='hidden'> - </span><cite>$author</cite></a></li>\n";