WordPress.org

Make WordPress Core

Changeset 10415


Ignore:
Timestamp:
01/22/09 22:47:48 (5 years ago)
Author:
ryan
Message:

If link name not given, use url for name. Props Denis-de-Bernardy. fixes #7789 for 2.7

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.7/wp-admin/includes/bookmark.php

    r9699 r10415  
    143143        $update = true; 
    144144 
    145     if ( trim( $link_name ) == '' ) 
    146         return 0; 
     145    if ( trim( $link_name ) == '' ) { 
     146        if ( trim( $link_url ) != '' ) { 
     147            $link_name = $link_url; 
     148        } else { 
     149            return 0; 
     150        } 
     151    } 
    147152 
    148153    if ( trim( $link_url ) == '' ) 
Note: See TracChangeset for help on using the changeset viewer.