Make WordPress Core


Ignore:
Timestamp:
04/28/2007 06:08:45 AM (17 years ago)
Author:
ryan
Message:

Create widget id from widget name when id not specified.

File:
1 edited

Legend:

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

    r5335 r5339  
    8282
    8383    // Last resort -- this can be broken when names get translated so please provide a unique id.
    84     if ( !isset($id) )
     84    if ( empty($id) )
    8585        $id = sanitize_title($name);
    8686
     
    123123    }
    124124
    125     if ( !isset($id) || empty($id) )
     125    if ( empty($id) )
    126126        $id = $name;
    127127
Note: See TracChangeset for help on using the changeset viewer.