Skip to content

Commit 9139b11

Browse files
committed
Code cleanup
1 parent 623f7a1 commit 9139b11

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
@@ -309,10 +309,10 @@ public function enqueue_assets() {
309309
'iconsAutoUpdate' => esc_html( $this->plugin->assets_rest_controller->get_icons_auto_update() ),
310310
'fontsUpdateStatus' => esc_html( $this->plugin->assets_rest_controller->get_fonts_update_status() ),
311311
'iconsUpdateStatus' => esc_html( $this->plugin->assets_rest_controller->get_icons_update_status() ),
312-
'pluginAutoUpdate' => in_array( 'material-design/material-design.php', get_site_option( 'auto_update_plugins', [] ), true ),
312+
'pluginAutoUpdate' => in_array( $plugin_file, get_site_option( 'auto_update_plugins', [] ), true ),
313313
'themeAutoUpdate' => in_array( Plugin::THEME_SLUG, get_site_option( 'auto_update_themes', [] ), true ),
314314
'pluginUpdateStatus' => isset( $plugin_updates->response[ $plugin_file ] ) ? 1 : 0,
315-
'pluginUpdateStatus' => isset( $theme_updates->response[ Plugin::THEME_SLUG ] ) ? 1 : 0,
315+
'themeUpdateStatus' => isset( $theme_updates->response[ Plugin::THEME_SLUG ] ) ? 1 : 0,
316316
]
317317
);
318318
}

0 commit comments

Comments
 (0)