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:
parent
9755b98195
commit
b696c840eb
@ -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
Block a user