Make WordPress Core

Changeset 36623


Ignore:
Timestamp:
02/23/2016 01:21:38 AM (9 years ago)
Author:
westonruter
Message:

Customize: Ensure dynamic_sidebar() finishes with removing the sidebar ID from the current_dynamic_sidebar_id_stack.

This ensures that widgets appearing after a nested sidebar will continue to be selective refreshable.

See #27355.

File:
1 edited

Legend:

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

    r36611 r36623  
    16951695     */
    16961696    public function end_dynamic_sidebar( $index ) {
     1697        array_shift( $this->current_dynamic_sidebar_id_stack );
    16971698        if ( ! $this->manager->selective_refresh->is_render_partials_request() ) {
    16981699            printf( "\n<!--dynamic_sidebar_after:%s:%d-->\n", esc_html( $index ), intval( $this->sidebar_instance_count[ $index ] ) );
Note: See TracChangeset for help on using the changeset viewer.