Plugin Directory

Changeset 909711


Ignore:
Timestamp:
05/07/2014 01:19:00 PM (12 years ago)
Author:
robmcvey
Message:

Conflicts fixed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • copify/trunk/CopifyWordpress.php

    r909710 r909711  
    833833                return;
    834834            }
    835             // Version check
    836             if (isset($_GET["check"]) && $_GET["check"] == 'version') {
    837                 echo json_encode($this->version);
    838                 die();
    839             }   
    840             // ID
    841             if (!isset($_GET["id"])) {
    842                 throw new Exception('Must include order ID');
    843             }
    844             // Email
     835            // Token
    845836            if (!isset($_GET["token"])) {
    846837                throw new Exception('Must include auth token');
     
    889880            $message = sprintf('Order %s auto-published', $id);
    890881            $json = array('success' => true, 'message' => $message);
    891             echo json_encode($json);
    892             die();
    893882        } catch (Exception $e) {
    894883            $message = $e->getMessage();
Note: See TracChangeset for help on using the changeset viewer.