Skip to content

Commit 6c6fa3f

Browse files
committed
Fix syntax error in php older versions
1 parent 0711d02 commit 6c6fa3f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugin/php/class-admin.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -293,8 +293,8 @@ public function enqueue_assets() {
293293
$plugin_updates = get_site_transient( 'update_plugins' );
294294
$theme_updates = get_site_transient( 'update_themes' );
295295

296-
$plugin_status = isset( $plugin_updates->response[ $plugin_file ] ) ? ( (array) $plugin_updates->response[ $plugin_file ] )['new_version'] : '';
297-
$theme_status = isset( $theme_updates->response[ Plugin::THEME_SLUG ] ) ? ( (array) $theme_updates->response[ Plugin::THEME_SLUG ] )['new_version'] : '';
296+
$plugin_status = isset( $plugin_updates->response[ $plugin_file ] ) ? ( (object) $plugin_updates->response[ $plugin_file ] )->new_version : '';
297+
$theme_status = isset( $theme_updates->response[ Plugin::THEME_SLUG ] ) ? ( (object) $theme_updates->response[ Plugin::THEME_SLUG ] )->new_version : '';
298298

299299
wp_localize_script(
300300
'material-settings',

0 commit comments

Comments
 (0)