Skip to content

Commit

Permalink
PLUGINS-6807
Browse files Browse the repository at this point in the history
  • Loading branch information
meteor-ec committed Oct 16, 2024
1 parent 970252f commit 9ae7ba4
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion includes/class-ecwid-admin-main-page.php
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ public function _do_integrated_admin_page( $page = self::PAGE_HASH_DASHBOARD ) {
$result = $request->do_request( array( 'timeout' => 20 ) );
}//end if

if ( $result['code'] == 403 ) {
if ( ! empty( $result ) && $result['code'] == 403 ) {
Ecwid_Api_V3::save_token( '' );
}

Expand Down
16 changes: 16 additions & 0 deletions templates/debug.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,22 @@
<div>Theme identification</div>
<div><?php echo esc_html( ecwid_get_theme_identification() ); ?></div>
</div>
<div class="section">
<div>Config URLs matching</div>
<div>
<p>
<?php
if ( defined( 'WP_SITEURL' ) ) {
echo esc_html( sprintf( 'WP_SITEURL: %s', WP_SITEURL ) );
} else {
echo 'WP_SITEURL isn\'t defined';
}
?>
</p>
<p><?php echo esc_html( sprintf( "Option 'siteurl': %s", get_option( 'siteurl' ) ) ); ?></p>
<p><?php echo esc_html( sprintf( 'admin_url(): %s', admin_url() ) ); ?></p>
</div>
</div>
<div class="section">
<div>Affiliate Ref ID</div>
<div><?php echo esc_html( apply_filters( 'ecwid_get_new_store_ref_id', '' ) ); ?></div>
Expand Down

0 comments on commit 9ae7ba4

Please sign in to comment.