Make WordPress Core


Ignore:
Timestamp:
10/25/2017 09:44:48 PM (8 years ago)
Author:
westonruter
Message:

Customize: Register the Publish Settings section in JS to ensure it does not get unregistered via PHP.

The publish_settings section is a fundamental dependency for Customizer, so it must be guaranteed to be registered.

Also unconditionally register core types for panels, sections, and controls in case plugin unhooks all customize_register actions.

See #39896.
Fixes #42337.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/script-loader.php

    r42006 r42025  
    599599            esc_url( admin_url( 'theme-install.php' ) )
    600600        ),
     601        'publishSettings' => __( 'Publish Settings' ),
    601602    ) );
    602603    $scripts->add( 'customize-selective-refresh', "/wp-includes/js/customize-selective-refresh$suffix.js", array( 'jquery', 'wp-util', 'customize-preview' ), false, 1 );
Note: See TracChangeset for help on using the changeset viewer.