@@ 920-930 (lines=11) @@ | ||
917 | true |
|
918 | ); |
|
919 | ||
920 | if (defined('DOING_AJAX')) { |
|
921 | $notices = EE_Error::get_notices(false, false, false); |
|
922 | echo wp_json_encode( |
|
923 | array( |
|
924 | 'return_data' => $country_details_settings, |
|
925 | 'success' => $notices['success'], |
|
926 | 'errors' => $notices['errors'], |
|
927 | ) |
|
928 | ); |
|
929 | die(); |
|
930 | } else { |
|
931 | return $country_details_settings; |
|
932 | } |
|
933 | } |
|
@@ 1014-1024 (lines=11) @@ | ||
1011 | true |
|
1012 | ); |
|
1013 | ||
1014 | if (defined('DOING_AJAX')) { |
|
1015 | $notices = EE_Error::get_notices(false, false, false); |
|
1016 | echo wp_json_encode( |
|
1017 | array( |
|
1018 | 'return_data' => $state_details_settings, |
|
1019 | 'success' => $notices['success'], |
|
1020 | 'errors' => $notices['errors'], |
|
1021 | ) |
|
1022 | ); |
|
1023 | die(); |
|
1024 | } else { |
|
1025 | return $state_details_settings; |
|
1026 | } |
|
1027 | } |