Changeset 1671286
- Timestamp:
- 06/05/2017 08:27:23 PM (9 years ago)
- Location:
- futusign/trunk
- Files:
-
- 5 edited
-
futusign.php (modified) (1 diff)
-
includes/class-futusign.php (modified) (1 diff)
-
public/class-futusign-public.php (modified) (3 diffs)
-
public/partials/futusign-endpoint.php (modified) (3 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
futusign/trunk/futusign.php
r1670053 r1671286 11 11 * Plugin URI: https://github.com/larkintuckerllc/futusign 12 12 * Description: Manage and display digital signage content 13 * Version: 2.2. 313 * Version: 2.2.4 14 14 * Author: John Tucker 15 15 * Author URI: https://github.com/larkintuckerllc -
futusign/trunk/includes/class-futusign.php
r1670053 r1671286 93 93 public function __construct() { 94 94 $this->plugin_name = 'futusign'; 95 $this->version = '2.2. 3';95 $this->version = '2.2.4'; 96 96 $this->load_dependencies(); 97 97 $this->set_locale(); -
futusign/trunk/public/class-futusign-public.php
r1669808 r1671286 10 10 */ 11 11 if ( ! defined( 'WPINC' ) ) { 12 die ;12 die(); 13 13 } 14 14 /** … … 51 51 $query_vars[] = 'futusign_endpoint'; 52 52 $query_vars[] = 'futusign_screen_id'; 53 $query_vars[] = 'futusign_debug'; 53 54 return $query_vars; 54 55 } … … 61 62 public function parse_request( $query ) { 62 63 $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 } 63 73 if ( array_key_exists( 'futusign_endpoint', $query_vars ) ) { 74 // DEBUG 1 75 if ($debug === '1') { 76 echo '1'; 77 die(); 78 } 64 79 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); 67 92 } else { 68 93 status_header(400); -
futusign/trunk/public/partials/futusign-endpoint.php
r1669808 r1671286 18 18 * @since 2.1.2 19 19 */ 20 function futusign_endpoint($screen_id) { 20 function futusign_endpoint($screen_id, $debug) { 21 // DEBUG 4 22 if ($debug === '4') { 23 echo '4'; 24 die(); 25 } 21 26 function term_to_id($o) { 22 27 return $o->term_id; … … 46 51 ); 47 52 $loop = new WP_Query( $args ); 53 // DEBUG 5 54 if ($debug === '5') { 55 echo '5'; 56 die(); 57 } 48 58 while ( $loop->have_posts() ) { 59 // DEBUG 6 60 if ($debug === '6') { 61 echo '6'; 62 die(); 63 } 49 64 $loop->the_post(); 50 65 $id = get_the_ID(); … … 69 84 'overlay' => $overlayPost ? $overlayPost->ID : null 70 85 ); 86 } 87 // DEBUG 7 88 if ($debug === '7') { 89 echo '7'; 90 die(); 71 91 } 72 92 if ($screen === null) { -
futusign/trunk/readme.txt
r1670053 r1671286 4 4 Requires at least: 4.3 5 5 Tested up to: 4.7 6 Stable tag: 2.2. 36 Stable tag: 2.2.4 7 7 License: GPLv2 or later 8 8 License URI: https://www.gnu.org/licenses/gpl.html … … 22 22 23 23 == Changelog == 24 25 = 2.2.4 = 26 27 Added debugging points to find error in endpoint API for a 28 customer. 24 29 25 30 = 2.2.3 =
Note: See TracChangeset
for help on using the changeset viewer.