Skip to content

Commit

Permalink
Remove OAuth from settings
Browse files Browse the repository at this point in the history
  • Loading branch information
Ninodevo committed Jul 24, 2024
1 parent d599d07 commit 7ded741
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions src/Settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -173,20 +173,6 @@ public function settings_page_callback() {
submit_button();
?>
</form>
<form method="post" action="<?php echo esc_url( admin_url( 'options-general.php?page=wpcomsp_auto_flickr_importer-settings&action=flickr_oauth_request' ) ); ?>">
<?php
if ( $this->flickr_oauth->token_exist() ) {
submit_button( 'Re-Authorize Flickr', 'secondary', 'flickr_oauth_request', false );
echo '<p>' . esc_html__( 'Flickr Account Authorized.', 'auto-flickr-importer' ) . '</p>';
} elseif ( wpcomsp_auto_flickr_importer_credentials_exist() ) {
submit_button( 'Authorize Flickr', 'secondary', 'flickr_oauth_request', false );
echo '<p>' . esc_html__( 'Authorize your Flickr account to enable auto import.', 'auto-flickr-importer' ) . '</p>';
} else {
submit_button( 'Authorize Flickr', 'secondary', 'flickr_oauth_request', false, array( 'disabled' => true ) );
echo '<p>' . esc_html__( 'Please enter your Flickr API Key and Secret before authorizing.', 'auto-flickr-importer' ) . '</p>';
}
?>
</form>
</div>
<?php
}
Expand Down

0 comments on commit 7ded741

Please sign in to comment.