Skip to content

Commit f83e663

Browse files
Coding Standards: Remove redundant check in WP_Customize_Widgets.
`isset()` is enough to check for the property existence here. Follow-up to [60279]. See #63168. git-svn-id: https://develop.svn.wordpress.org/trunk@60290 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 4e96d75 commit f83e663

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wp-includes/class-wp-customize-widgets.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -923,7 +923,7 @@ public function output_widget_control_templates() {
923923
<span class="customize-action">
924924
<?php
925925
$panel = $this->manager->get_panel( 'widgets' );
926-
$panel_title = $panel && isset( $panel->title ) ? $panel->title : __( 'Widgets' );
926+
$panel_title = isset( $panel->title ) ? $panel->title : __( 'Widgets' );
927927
/* translators: &#9656; is the unicode right-pointing triangle. %s: Section title in the Customizer. */
928928
printf( __( 'Customizing &#9656; %s' ), esc_html( $panel_title ) );
929929
?>

0 commit comments

Comments
 (0)