Skip to content

Commit

Permalink
Remove useless assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
ramonjd committed Aug 25, 2023
1 parent def8ccb commit 2a73135
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/client-assets.php
Original file line number Diff line number Diff line change
Expand Up @@ -608,9 +608,7 @@ function gutenberg_register_vendor_scripts( $scripts ) {
* @param WP_Scripts $scripts WP_Scripts object.
*/
function gutenberg_update_wp_date_settings( $scripts ) {
$script = $scripts->query( 'wp-date', 'registered' );

if ( $script ) {
if ( $scripts->query( 'wp-date', 'registered' ) ) {
global $wp_locale;
// Calculate the timezone abbr (EDT, PST) if possible.
$timezone_string = get_option( 'timezone_string', 'UTC' );
Expand Down

0 comments on commit 2a73135

Please sign in to comment.