WordPress.org

Make WordPress Core


Ignore:
Timestamp:
11/03/2019 04:46:55 PM (11 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-section.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/**
     
    3335     *
    3436     * @since 4.9.0
     37     * @deprecated 4.9.0
    3538     *
    3639     * @param WP_Customize_Manager $manager Customizer bootstrap instance.
     
    3942     */
    4043    public function __construct( WP_Customize_Manager $manager, $id, array $args = array() ) {
    41         _deprecated_file( basename( __FILE__ ), '4.9.0' ); // @todo Move this outside of class, and remove its require_once() from class-wp-customize-section.php. See #42364.
     44        _deprecated_function( __METHOD__, '4.9.0' );
    4245        parent::__construct( $manager, $id, $args );
    4346    }
     
    4750     *
    4851     * @since 4.3.0
     52     * @deprecated 4.9.0
    4953     */
    5054    protected function render() {
     55        _deprecated_function( __METHOD__, '4.9.0' );
    5156        ?>
    5257        <li id="accordion-section-<?php echo esc_attr( $this->id ); ?>" class="accordion-section-new-menu">
Note: See TracChangeset for help on using the changeset viewer.