WordPress.org

Make WordPress Core

Changeset 8746


Ignore:
Timestamp:
08/27/08 18:00:51 (6 years ago)
Author:
ryan
Message:

RSS widget shouldn't link if there isn't a link. Props MtDewVirus. fixes #7614

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/widgets.php

    r8600 r8746  
    11631163            } 
    11641164 
    1165             echo "<li><a class='rsswidget' href='$link' title='$desc'>$title</a>{$date}{$summary}{$author}</li>"; 
    1166         } 
     1165            if ( $link == '' ) { 
     1166                echo "<li>$title{$date}{$summary}{$author}</li>";  
     1167            } else { 
     1168                echo "<li><a class='rsswidget' href='$link' title='$desc'>$title</a>{$date}{$summary}{$author}</li>";  
     1169            } 
     1170} 
    11671171        echo '</ul>'; 
    11681172    } else { 
Note: See TracChangeset for help on using the changeset viewer.