Plugin Directory

Changeset 1671968


Ignore:
Timestamp:
06/06/2017 05:40:19 PM (9 years ago)
Author:
sckmkny
Message:

Install debug points

Location:
futusign/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • futusign/trunk/futusign.php

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

    r1671815 r1671968  
    9393    public function __construct() {
    9494        $this->plugin_name = 'futusign';
    95         $this->version = '2.2.5';
     95        $this->version = '2.2.6';
    9696        $this->load_dependencies();
    9797        $this->set_locale();
  • futusign/trunk/public/class-futusign-public.php

    r1671815 r1671968  
    5151    $query_vars[] = 'futusign_endpoint';
    5252        $query_vars[] = 'futusign_screen_id';
     53        $query_vars[] = 'futusign_debug';
    5354        return $query_vars;
    5455    }
     
    6061     */
    6162    public function parse_request( $query ) {
     63        global $futusign_debug;
     64        $futusign_debug = null;
    6265        $query_vars = $query->query_vars;
     66        if ( array_key_exists( 'futusign_debug', $query_vars ) ) {
     67            $futusign_debug = $query_vars['futusign_debug'];
     68        }
     69        // DEGUG 0
     70        if ($futusign_debug === '0') {
     71            echo 0;
     72            die();
     73        }
    6374        if ( array_key_exists( 'futusign_endpoint', $query_vars ) ) {
    6475            if ( array_key_exists( 'futusign_screen_id', $query_vars ) ) {
     76                // DEGUG 1
     77                if ($futusign_debug === '1') {
     78                    echo 1;
     79                    die();
     80                }
    6581                require_once plugin_dir_path( __FILE__ ) . 'partials/futusign-endpoint.php';
     82                // DEGUG 5
     83                if ($futusign_debug === '5') {
     84                    echo 5;
     85                    die();
     86                }
    6687                futusign_endpoint($query_vars['futusign_screen_id']);
    6788            } else {
  • futusign/trunk/public/partials/futusign-endpoint.php

    r1671815 r1671968  
    11<?php
     2// DEGUG 2
     3global $futusign_debug;
     4if ($futusign_debug === '2') {
     5    echo 2;
     6    die();
     7}
    28/**
    39 * futusign endpoint
     
    1218    die;
    1319}
     20// DEGUG 3
     21if ($futusign_debug === '3') {
     22    echo 3;
     23    die();
     24}
    1425/**
    1526 * futusign endpoint
     
    1930 */
    2031function futusign_endpoint($screen_id) {
     32    global $futusign_debug;
     33    // DEGUG 6
     34    if ($futusign_debug === '6') {
     35        echo 6;
     36        die();
     37    }
    2138    function term_to_id($o) {
    2239        return $o->term_id;
     
    4562        'page_id' => $screen_id,
    4663    );
     64    // DEGUG 7
     65    if ($futusign_debug === '7') {
     66        echo 7;
     67        die();
     68    }
    4769    $loop = new WP_Query( $args );
    4870    while ( $loop->have_posts() ) {
     71        // DEGUG 8
     72        if ($futusign_debug === '8') {
     73            echo 8;
     74            die();
     75        }
    4976        $loop->the_post();
    5077        $id = get_the_ID();
     
    7097        );
    7198    }
     99    // DEGUG 9
     100    if ($futusign_debug === '9') {
     101        echo 9;
     102        die();
     103    }
    72104    if ($screen === null) {
    73105        status_header(404);
    74106        return;
     107    }
     108    // DEBUG 10
     109    if ($futusign_debug === '10') {
     110        echo 10;
     111        die();
    75112    }
    76113    wp_reset_query();
     
    518555    echo '}';
    519556}
     557// DEGUG 4
     558if ($futusign_debug === '4') {
     559    echo 4;
     560    die();
     561}
  • futusign/trunk/readme.txt

    r1671815 r1671968  
    44Requires at least: 4.3
    55Tested up to: 4.7
    6 Stable tag: 2.2.5
     6Stable tag: 2.2.6
    77License: GPLv2 or later
    88License URI: https://www.gnu.org/licenses/gpl.html
     
    2222
    2323== Changelog ==
     24
     25= 2.2.6 =
     26
     27Still tracking down bug with customer site; adding debugging back in.
    2428
    2529= 2.2.5 =
Note: See TracChangeset for help on using the changeset viewer.