Skip to content

Commit

Permalink
[php-compat] [warning] [fix] Fix warning with PHP 8.2
Browse files Browse the repository at this point in the history
  • Loading branch information
DanieleAlessandra authored and swashata committed Dec 10, 2024
1 parent 93d83ba commit c8b547b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion start.php
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ function_exists( 'wp_is_json_request' ) &&
return;
}

if ( version_compare( $this_sdk_version, $fs_active_plugins->newest->version, '<' ) ) {
if ( isset( $fs_active_plugins->newest ) && version_compare( $this_sdk_version, $fs_active_plugins->newest->version, '<' ) ) {
$newest_sdk = $fs_active_plugins->plugins[ $fs_active_plugins->newest->sdk_path ];

$plugins_or_theme_dir_path = ( ! isset( $newest_sdk->type ) || 'theme' !== $newest_sdk->type ) ?
Expand Down

0 comments on commit c8b547b

Please sign in to comment.