WordPress.org

Make WordPress Core


Ignore:
Timestamp:
11/03/2019 04:46:55 PM (9 months ago)
Author:
desrosj
Message:

Customize: Formally deprecate unused Customizer classes.

The WP_Customize_New_Menu_Control and WP_Customize_New_Menu_Section PHP classes and wp.customize.Menus.NewMenuControl JS class were deprecated in 4.9 through [42034] with the intention of removing them in 5.0. Since more time has passed than originally intended, this change leaves WP_Customize_New_Menu_Control and WP_Customize_New_Menu_Section to prevent any potential backwards compatibility issues, and formally deprecates them. The wp.customize.Menus.NewMenuControl JS class is removed.

Props weston.ruter, matthias-reuter, jrf.
Fixes #42364.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/customize/class-wp-customize-new-menu-control.php

    r44228 r46637  
    88 * @deprecated 4.9.0 This file is no longer used as of the menu creation UX introduced in #40104.
    99 */
     10
     11_deprecated_file( basename( __FILE__ ), '4.9.0' );
    1012
    1113/**
     
    3133     *
    3234     * @since 4.9.0
     35     * @deprecated 4.9.0
    3336     *
    3437     * @param WP_Customize_Manager $manager Manager.
     
    3740     */
    3841    public function __construct( WP_Customize_Manager $manager, $id, array $args = array() ) {
    39         _deprecated_file( basename( __FILE__ ), '4.9.0' ); // @todo Move this outside of class, and remove its require_once() from class-wp-customize-control.php. See #42364.
     42        _deprecated_function( __METHOD__, '4.9.0' );
    4043        parent::__construct( $manager, $id, $args );
    4144    }
     
    4548     *
    4649     * @since 4.3.0
     50     * @deprecated 4.9.0
    4751     */
    4852    public function render_content() {
     53        _deprecated_function( __METHOD__, '4.9.0' );
    4954        ?>
    5055        <button type="button" class="button button-primary" id="create-new-menu-submit"><?php _e( 'Create Menu' ); ?></button>
Note: See TracChangeset for help on using the changeset viewer.