Skip to content

Commit

Permalink
Simplified code.
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan0sz committed Feb 1, 2024
1 parent 7a291fc commit 6ecde30
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Admin/Settings/API.php
Original file line number Diff line number Diff line change
Expand Up @@ -201,8 +201,9 @@ private function show_wizard() {
<?php ++ $i; ?>
<div class="mt-6">
<?php if ( array_key_exists( $i, $slide_ids ) ) : ?>
<?php $disabled = false; ?>
<?php if ( $id === 'api_token' ) {
<?php $disabled = false;

if ( $id === 'api_token' ) {
$settings = Helpers::get_settings();

if ( empty( $settings[ $id ] ) ) {
Expand Down

0 comments on commit 6ecde30

Please sign in to comment.