WordPress.org

Make WordPress Core

Changeset 8747


Ignore:
Timestamp:
08/27/08 18:01:05 (7 years ago)
Author:
ryan
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.6/wp-includes/widgets.php

    r8568 r8747  
    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.