Plugin Directory

Changeset 1671286


Ignore:
Timestamp:
06/05/2017 08:27:23 PM (9 years ago)
Author:
sckmkny
Message:

debugging upgrade

Location:
futusign/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • futusign/trunk/futusign.php

    r1670053 r1671286  
    1111 * Plugin URI:       https://github.com/larkintuckerllc/futusign
    1212 * Description:      Manage and display digital signage content
    13  * Version:          2.2.3
     13 * Version:          2.2.4
    1414 * Author:           John Tucker
    1515 * Author URI:       https://github.com/larkintuckerllc
  • futusign/trunk/includes/class-futusign.php

    r1670053 r1671286  
    9393    public function __construct() {
    9494        $this->plugin_name = 'futusign';
    95         $this->version = '2.2.3';
     95        $this->version = '2.2.4';
    9696        $this->load_dependencies();
    9797        $this->set_locale();
  • futusign/trunk/public/class-futusign-public.php

    r1669808 r1671286  
    1010 */
    1111if ( ! defined( 'WPINC' ) ) {
    12     die;
     12    die();
    1313}
    1414/**
     
    5151    $query_vars[] = 'futusign_endpoint';
    5252        $query_vars[] = 'futusign_screen_id';
     53        $query_vars[] = 'futusign_debug';
    5354        return $query_vars;
    5455    }
     
    6162    public function parse_request( $query ) {
    6263        $query_vars = $query->query_vars;
     64        $debug = null;
     65        if ( array_key_exists( 'futusign_debug', $query_vars ) ) {
     66            $debug = $query_vars['futusign_debug'];
     67        }
     68        // DEBUG 0
     69        if ($debug === '0') {
     70            echo '0';
     71            die();
     72        }
    6373        if ( array_key_exists( 'futusign_endpoint', $query_vars ) ) {
     74            // DEBUG 1
     75            if ($debug === '1') {
     76                echo '1';
     77                die();
     78            }
    6479            if ( array_key_exists( 'futusign_screen_id', $query_vars ) ) {
    65                 include 'partials/futusign-endpoint.php';
    66                 futusign_endpoint($query_vars['futusign_screen_id']);
     80                // DEBUG 2
     81                if ($debug === '2') {
     82                    echo '2';
     83                    die();
     84                }
     85                require 'partials/futusign-endpoint.php';
     86                // DEBUG 3
     87                if ($debug === '3') {
     88                    echo '3';
     89                    die();
     90                }
     91                futusign_endpoint($query_vars['futusign_screen_id'], $debug);
    6792            } else {
    6893                status_header(400);
  • futusign/trunk/public/partials/futusign-endpoint.php

    r1669808 r1671286  
    1818 * @since    2.1.2
    1919 */
    20 function futusign_endpoint($screen_id) {
     20function futusign_endpoint($screen_id, $debug) {
     21    // DEBUG 4
     22    if ($debug === '4') {
     23        echo '4';
     24        die();
     25    }
    2126    function term_to_id($o) {
    2227        return $o->term_id;
     
    4651    );
    4752    $loop = new WP_Query( $args );
     53    // DEBUG 5
     54    if ($debug === '5') {
     55        echo '5';
     56        die();
     57    }
    4858    while ( $loop->have_posts() ) {
     59        // DEBUG 6
     60        if ($debug === '6') {
     61            echo '6';
     62            die();
     63        }
    4964        $loop->the_post();
    5065        $id = get_the_ID();
     
    6984            'overlay' => $overlayPost ? $overlayPost->ID : null
    7085        );
     86    }
     87    // DEBUG 7
     88    if ($debug === '7') {
     89        echo '7';
     90        die();
    7191    }
    7292    if ($screen === null) {
  • futusign/trunk/readme.txt

    r1670053 r1671286  
    44Requires at least: 4.3
    55Tested up to: 4.7
    6 Stable tag: 2.2.3
     6Stable tag: 2.2.4
    77License: GPLv2 or later
    88License URI: https://www.gnu.org/licenses/gpl.html
     
    2222
    2323== Changelog ==
     24
     25= 2.2.4 =
     26
     27Added debugging points to find error in endpoint API for a
     28customer.
    2429
    2530= 2.2.3 =
Note: See TracChangeset for help on using the changeset viewer.