Skip to content

Commit

Permalink
#128 Make the API Key Error Translatable (#131)
Browse files Browse the repository at this point in the history
1) #128 Make the API Key Error Translatable
2) Coding Standards auto update, this should stop once one of the newer PRs are merged.
  • Loading branch information
namithj authored Nov 5, 2024
1 parent f9e5b37 commit 2b15a47
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion assets/js/aspire-update.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ class ApiRewrites {
if ((response.status === 400) || (response.status === 401)) {
ApiRewrites.api_key.show_error(response.responseJSON?.error);
} else {
ApiRewrites.api_key.show_error('Unexpected Error: ' + response.status);
ApiRewrites.api_key.show_error(aspireupdate.string_unexpected_error + ' ' + response.status);
}
});
},
Expand Down
8 changes: 4 additions & 4 deletions includes/class-admin-settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -288,10 +288,10 @@ public function admin_enqueue_scripts( $hook ) {
'aspire_update_settings_js',
'aspireupdate',
[

'ajax_url' => network_admin_url( 'admin-ajax.php' ),
'nonce' => wp_create_nonce( 'aspireupdate-ajax' ),
'domain' => Utilities::get_top_level_domain(),
'ajax_url' => network_admin_url( 'admin-ajax.php' ),
'nonce' => wp_create_nonce( 'aspireupdate-ajax' ),
'domain' => Utilities::get_top_level_domain(),
'string_unexpected_error' => esc_html__( 'Unexpected Error:', 'AspireUpdate' ),
]
);
}
Expand Down

0 comments on commit 2b15a47

Please sign in to comment.