Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 4 additions & 20 deletions src/wp-includes/class-wp-customize-manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -3872,11 +3872,7 @@ public function add_dynamic_settings( $setting_ids ) {
* @return WP_Customize_Setting|null The setting, if set.
*/
public function get_setting( $id ) {
if ( isset( $this->settings[ $id ] ) ) {
return $this->settings[ $id ];
}

return null;
return $this->settings[ $id ] ?? null;
}

/**
Expand Down Expand Up @@ -3926,11 +3922,7 @@ public function add_panel( $id, $args = array() ) {
* @return WP_Customize_Panel|null Requested panel instance, if set.
*/
public function get_panel( $id ) {
if ( isset( $this->panels[ $id ] ) ) {
return $this->panels[ $id ];
}

return null;
return $this->panels[ $id ] ?? null;
}

/**
Expand Down Expand Up @@ -4024,11 +4016,7 @@ public function add_section( $id, $args = array() ) {
* @return WP_Customize_Section|null The section, if set.
*/
public function get_section( $id ) {
if ( isset( $this->sections[ $id ] ) ) {
return $this->sections[ $id ];
}

return null;
return $this->sections[ $id ] ?? null;
}

/**
Expand Down Expand Up @@ -4105,11 +4093,7 @@ public function add_control( $id, $args = array() ) {
* @return WP_Customize_Control|null The control object, if set.
*/
public function get_control( $id ) {
if ( isset( $this->controls[ $id ] ) ) {
return $this->controls[ $id ];
}

return null;
return $this->controls[ $id ] ?? null;
}

/**
Expand Down
Loading