Plugin Directory

Changeset 3031997


Ignore:
Timestamp:
02/06/2024 07:38:53 AM (2 years ago)
Author:
eberwp
Message:

update frontend api

File:
1 edited

Legend:

Unmodified
Added
Removed
  • eber/trunk/init/frontend.php

    r3030498 r3031997  
    5151        $api_user = sanitize_text_field($_SERVER['PHP_AUTH_USER']);
    5252        $api_pass  = sanitize_text_field($_SERVER['PHP_AUTH_PW']);
    53         if ($api_user !== $api_key || $api_pass !== $store_id) {
     53        if ($api_user !== $store_id || $api_pass !== $api_key) {
    5454            $return = array();
    5555            $return['success'] = false;
Note: See TracChangeset for help on using the changeset viewer.