WordPress.org

Make WordPress Core


Ignore:
Timestamp:
05/30/2008 03:59:14 PM (14 years ago)
Author:
ryan
Message:

Dashboard validation fixes from Viper007Bond and mdawaffe. fixes #7064

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/dashboard.php

    r7998 r8016  
    390390    foreach ($rss->items as $item ) {
    391391        $title = wp_specialchars($item['title']);
    392         $author = preg_replace( '|(.+?):.+|s', '$1', $item['title'] );
    393         $post = preg_replace( '|.+?:(.+)|s', '$1', $item['title'] );
     392        list($author,$post) = explode( ':', $title, 2 );
    394393        $link = clean_url($item['link']);
    395394
Note: See TracChangeset for help on using the changeset viewer.