WordPress.org

Make WordPress Core

Changeset 41273


Ignore:
Timestamp:
08/20/2017 03:37:17 AM (3 years ago)
Author:
DrewAPicture
Message:

Docs: Explicitly deprecate the add_tab(), remove_tab(), and print_tab_image() methods for WP_Customize_Image_Control, originally soft-deprecated in 4.1.

Props jrf.
See #41121.

File:
1 edited

Legend:

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

    r36769 r41273  
    5757     * @param mixed $callback
    5858     */
    59     public function add_tab( $id, $label, $callback ) {}
     59    public function add_tab( $id, $label, $callback ) {
     60        _deprecated_function( __METHOD__, '4.1.0' );
     61    }
    6062
    6163    /**
     
    6567     * @param string $id
    6668     */
    67     public function remove_tab( $id ) {}
     69    public function remove_tab( $id ) {
     70        _deprecated_function( __METHOD__, '4.1.0' );
     71    }
    6872
    6973    /**
     
    7478     * @param string $thumbnail_url
    7579     */
    76     public function print_tab_image( $url, $thumbnail_url = null ) {}
     80    public function print_tab_image( $url, $thumbnail_url = null ) {
     81        _deprecated_function( __METHOD__, '4.1.0' );
     82    }
    7783}
Note: See TracChangeset for help on using the changeset viewer.