Make WordPress Core

Changeset 60290


Ignore:
Timestamp:
06/06/2025 09:42:38 AM (11 days ago)
Author:
SergeyBiryukov
Message:

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.

File:
1 edited

Legend:

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

    r60279 r60290  
    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 ) );
Note: See TracChangeset for help on using the changeset viewer.
OSZAR »