WordPress.org

Make WordPress Core

Changeset 5338


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

Create widget id from widget name when id not specified.

File:
1 edited

Legend:

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

    r5334 r5338  
    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.