WordPress.org

Make WordPress Core

Changeset 42035


Ignore:
Timestamp:
10/28/2017 06:36:12 AM (3 years ago)
Author:
westonruter
Message:

Customize: Ensure id for section and panel is passed among params to respective templates.

Fixes issue where JS-added Publish Settings section failed to get container element ID set properly to hide its section-meta.

Amends [42025].
See #42337, #42083.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/js/customize-controls.js

    r42033 r42035  
    13031303            }
    13041304            if ( template && container.container ) {
    1305                 return $.trim( template( container.params ) );
     1305                return $.trim( template( _.extend(
     1306                    { id: container.id },
     1307                    container.params
     1308                ) ) );
    13061309            }
    13071310
     
    29692972            }
    29702973            if ( template && panel.headContainer ) {
    2971                 panel.contentContainer.html( template( panel.params ) );
     2974                panel.contentContainer.html( template( _.extend(
     2975                    { id: panel.id },
     2976                    panel.params
     2977                ) ) );
    29722978            }
    29732979        }
Note: See TracChangeset for help on using the changeset viewer.