WordPress.org

Make WordPress Core


Ignore:
Timestamp:
11/14/2010 03:50:02 PM (9 years ago)
Author:
scribu
Message:

Improve hook readability via curly brackets. Props jjj for initial patch. Fixes #15422

File:
1 edited

Legend:

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

    r16313 r16365  
    9999    $hidden = isset($params[0]['_hide']) ? ' style="display:none;"' : '';
    100100
    101     $params[0]['before_widget'] = "<div id='widget-${i}_$id' class='widget'$hidden>";
     101    $params[0]['before_widget'] = "<div id='widget-{$i}_{$id}' class='widget'$hidden>";
    102102    $params[0]['after_widget'] = "</div>";
    103103    $params[0]['before_title'] = "%BEG_OF_TITLE%"; // deprecated
Note: See TracChangeset for help on using the changeset viewer.