Skip to content

Commit

Permalink
Only disable next button for API token, because Domain name is prefil…
Browse files Browse the repository at this point in the history
…led.
  • Loading branch information
Dan0sz committed Feb 1, 2024
1 parent 384ca3b commit 7a291fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Admin/Settings/API.php
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ private function show_wizard() {
<div class="mt-6">
<?php if ( array_key_exists( $i, $slide_ids ) ) : ?>
<?php $disabled = false; ?>
<?php if ( $id === 'domain_name' || $id === 'api_token' ) {
<?php if ( $id === 'api_token' ) {
$settings = Helpers::get_settings();

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

0 comments on commit 7a291fc

Please sign in to comment.