Docs: Add a reference to WP_Customize_Control::__construct()
for information on accepted arguments to override class property defaults in child classes.
Props marcio-zebedeu, marekdedic. Fixes #48348. git-svn-id: https://develop.svn.wordpress.org/trunk@47363 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
4e0062e5be
commit
5178d29f4a
@ -46,6 +46,8 @@ class WP_Customize_Color_Control extends WP_Customize_Control {
|
|||||||
* @param WP_Customize_Manager $manager Customizer bootstrap instance.
|
* @param WP_Customize_Manager $manager Customizer bootstrap instance.
|
||||||
* @param string $id Control ID.
|
* @param string $id Control ID.
|
||||||
* @param array $args Optional. Arguments to override class property defaults.
|
* @param array $args Optional. Arguments to override class property defaults.
|
||||||
|
* See WP_Customize_Control::__construct() for information
|
||||||
|
* on accepted arguments.
|
||||||
*/
|
*/
|
||||||
public function __construct( $manager, $id, $args = array() ) {
|
public function __construct( $manager, $id, $args = array() ) {
|
||||||
$this->statuses = array( '' => __( 'Default' ) );
|
$this->statuses = array( '' => __( 'Default' ) );
|
||||||
|
@ -48,6 +48,8 @@ class WP_Customize_Media_Control extends WP_Customize_Control {
|
|||||||
* @param WP_Customize_Manager $manager Customizer bootstrap instance.
|
* @param WP_Customize_Manager $manager Customizer bootstrap instance.
|
||||||
* @param string $id Control ID.
|
* @param string $id Control ID.
|
||||||
* @param array $args Optional. Arguments to override class property defaults.
|
* @param array $args Optional. Arguments to override class property defaults.
|
||||||
|
* See WP_Customize_Control::__construct() for information
|
||||||
|
* on accepted arguments.
|
||||||
*/
|
*/
|
||||||
public function __construct( $manager, $id, $args = array() ) {
|
public function __construct( $manager, $id, $args = array() ) {
|
||||||
parent::__construct( $manager, $id, $args );
|
parent::__construct( $manager, $id, $args );
|
||||||
|
@ -41,7 +41,9 @@ class WP_Customize_Nav_Menu_Item_Control extends WP_Customize_Control {
|
|||||||
*
|
*
|
||||||
* @param WP_Customize_Manager $manager Customizer bootstrap instance.
|
* @param WP_Customize_Manager $manager Customizer bootstrap instance.
|
||||||
* @param string $id The control ID.
|
* @param string $id The control ID.
|
||||||
* @param array $args Optional. Overrides class property defaults.
|
* @param array $args Optional. Arguments to override class property defaults.
|
||||||
|
* See WP_Customize_Control::__construct() for information
|
||||||
|
* on accepted arguments.
|
||||||
*/
|
*/
|
||||||
public function __construct( $manager, $id, $args = array() ) {
|
public function __construct( $manager, $id, $args = array() ) {
|
||||||
parent::__construct( $manager, $id, $args );
|
parent::__construct( $manager, $id, $args );
|
||||||
|
@ -34,9 +34,11 @@ class WP_Customize_New_Menu_Control extends WP_Customize_Control {
|
|||||||
* @since 4.9.0
|
* @since 4.9.0
|
||||||
* @deprecated 4.9.0
|
* @deprecated 4.9.0
|
||||||
*
|
*
|
||||||
* @param WP_Customize_Manager $manager Manager.
|
* @param WP_Customize_Manager $manager Customizer bootstrap instance.
|
||||||
* @param string $id ID.
|
* @param string $id The control ID.
|
||||||
* @param array $args Args.
|
* @param array $args Optional. Arguments to override class property defaults.
|
||||||
|
* See WP_Customize_Control::__construct() for information
|
||||||
|
* on accepted arguments.
|
||||||
*/
|
*/
|
||||||
public function __construct( WP_Customize_Manager $manager, $id, array $args = array() ) {
|
public function __construct( WP_Customize_Manager $manager, $id, array $args = array() ) {
|
||||||
_deprecated_function( __METHOD__, '4.9.0' );
|
_deprecated_function( __METHOD__, '4.9.0' );
|
||||||
|
@ -34,6 +34,8 @@ class WP_Customize_Site_Icon_Control extends WP_Customize_Cropped_Image_Control
|
|||||||
* @param WP_Customize_Manager $manager Customizer bootstrap instance.
|
* @param WP_Customize_Manager $manager Customizer bootstrap instance.
|
||||||
* @param string $id Control ID.
|
* @param string $id Control ID.
|
||||||
* @param array $args Optional. Arguments to override class property defaults.
|
* @param array $args Optional. Arguments to override class property defaults.
|
||||||
|
* See WP_Customize_Control::__construct() for information
|
||||||
|
* on accepted arguments.
|
||||||
*/
|
*/
|
||||||
public function __construct( $manager, $id, $args = array() ) {
|
public function __construct( $manager, $id, $args = array() ) {
|
||||||
parent::__construct( $manager, $id, $args );
|
parent::__construct( $manager, $id, $args );
|
||||||
|
Loading…
Reference in New Issue
Block a user