Plugin Directory

Changeset 1672096


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

More debugging

Location:
futusign/trunk
Files:
1 added
5 edited

Legend:

Unmodified
Added
Removed
  • futusign/trunk/futusign.php

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

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

    r1671968 r1672096  
    7979                    die();
    8080                }
     81                if ($futusign_debug === 'debug') {
     82                    require_once plugin_dir_path( __FILE__ ) . 'partials/futusign-endpoint-debug.php';
     83                    futusign_endpoint($query_vars['futusign_screen_id']);
     84                    die();
     85                }
    8186                require_once plugin_dir_path( __FILE__ ) . 'partials/futusign-endpoint.php';
    8287                // DEGUG 5
  • futusign/trunk/public/partials/futusign-endpoint.php

    r1671968 r1672096  
    2424}
    2525/**
     26 * futusign term to id
     27 * @param    object     $o      The term
     28 * @return   number      the id
     29 *
     30 * @since    2.2.7
     31 */
     32function futusign_term_to_id($o) {
     33    return $o->term_id;
     34}
     35/**
    2636 * futusign endpoint
    2737 * @param    number     $screen_id      The screen id
     
    3545        echo 6;
    3646        die();
    37     }
    38     function term_to_id($o) {
    39         return $o->term_id;
    4047    }
    4148    $screen = null;
     
    7885        // SUBSCRIBED PLAYLISTS
    7986        $playlist_terms = get_the_terms( $id, 'futusign_playlist');
    80         $subscribed_playlist_ids = $playlist_terms ? array_map('term_to_id', $playlist_terms) : [];
     87        $subscribed_playlist_ids = $playlist_terms ? array_map('futusign_term_to_id', $playlist_terms) : [];
    8188        // SUBSCRIBED OVERRIDES
    8289        if (class_exists( 'Futusign_Override' )) {
    8390            $override_terms = get_the_terms( $id, 'futusign_override');
    84             $subscribed_override_ids = $override_terms ? array_map('term_to_id', $override_terms) : [];
     91            $subscribed_override_ids = $override_terms ? array_map('futusign_term_to_id', $override_terms) : [];
    8592        }
    8693        // POLLING
  • futusign/trunk/readme.txt

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