Skip to content

Commit

Permalink
Merge pull request #156 from w3bdesign/develop
Browse files Browse the repository at this point in the history
Shorten variable name
  • Loading branch information
w3bdesign authored Feb 4, 2022
2 parents 77912cd + a319264 commit df25bcd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions classes/class-algolia-woo-indexer.php
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ public static function update_settings_options()
*
* @see https://developer.wordpress.org/reference/functions/sanitize_text_field/
*/
$filtered_application_id = sanitize_text_field($post_application_id['id']);
$filtered_app_id = sanitize_text_field($post_application_id['id']);
$filtered_api_key = sanitize_text_field($post_api_key['key']);
$filtered_index_name = sanitize_text_field($post_index_name['name']);

Expand All @@ -343,10 +343,10 @@ public static function update_settings_options()
*
* @see https://developer.wordpress.org/reference/functions/update_option/
*/
if (isset($filtered_application_id) && (! empty($filtered_application_id))) {
if (isset($filtered_app_id) && (! empty($filtered_app_id))) {
update_option(
ALGOWOO_DB_OPTION . ALGOLIA_APP_ID,
$filtered_application_id
$filtered_app_id
);
}

Expand Down

0 comments on commit df25bcd

Please sign in to comment.