WordPress.org

Make WordPress Core

Changeset 22406


Ignore:
Timestamp:
11/06/12 22:36:24 (18 months ago)
Author:
nacin
Message:

Revert [22387]. see #14466. see #22374.

Location:
trunk/wp-admin
Files:
2 edited

Legend:

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

    r22387 r22406  
    6868    add_filter( 'dynamic_sidebar_params', 'wp_list_widget_controls_dynamic_sidebar' ); 
    6969 
    70     echo "<div id='sidebar-$sidebar' class='widgets-sortables'>\n"; 
     70    echo "<div id='$sidebar' class='widgets-sortables'>\n"; 
    7171 
    7272    $description = wp_sidebar_description( $sidebar ); 
  • trunk/wp-admin/js/widgets.js

    r22387 r22406  
    116116                    n = ui.item.find('input.multi_number').val(), 
    117117                    id = the_id, 
    118                     sb = $(this).attr('id').replace(/^sidebar-/, ''); 
     118                    sb = $(this).attr('id'); 
    119119 
    120120                ui.item.css({margin:'', 'width':''}); 
     
    187187        $('div.widgets-sortables').each( function() { 
    188188            if ( $(this).sortable ) 
    189                 a['sidebars[' + $(this).attr('id').replace(/^sidebar-/, '') + ']'] = $(this).sortable('toArray').join(','); 
     189                a['sidebars[' + $(this).attr('id') + ']'] = $(this).sortable('toArray').join(','); 
    190190        }); 
    191191 
     
    198198 
    199199    save : function(widget, del, animate, order) { 
    200         var sb = widget.closest('div.widgets-sortables').attr('id').replace(/^sidebar-/, ''), data = widget.find('form').serialize(), a; 
     200        var sb = widget.closest('div.widgets-sortables').attr('id'), data = widget.find('form').serialize(), a; 
    201201        widget = $(widget); 
    202202        $('.spinner', widget).show(); 
Note: See TracChangeset for help on using the changeset viewer.