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:
parent
d1073bd67d
commit
8d7b9c3a08
|
@ -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";
|
||||
|
|
Loading…
Reference in New Issue