Remove debug content
authorSteve Sutton <steve@gaslightmedia.com>
Wed, 22 Jun 2016 11:36:42 +0000 (07:36 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Wed, 22 Jun 2016 11:36:42 +0000 (07:36 -0400)
Removing print_r statements.

index.php

index 2a47ac5..0b8e620 100644 (file)
--- a/index.php
+++ b/index.php
@@ -463,10 +463,8 @@ function glm_custom_shortcode( $atts ) {
        </form></div></div>';
 
        if ( $tour_id = filter_var( $_REQUEST['tour'], FILTER_VALIDATE_INT ) ) {
-        echo '<pre>$tour_id: ' . print_r($tour_id, true) . '</pre>';
                glm_custom_show_tour( $tour_id );
        } else if ( $cat_id = filter_var( $_REQUEST['category'], FILTER_VALIDATE_INT ) ) {
-        echo '<pre>$cat_id: ' . print_r($cat_id, true) . '</pre>';
                glm_custom_list_categories( $cat_id );
        } else if ( ! $catid_id && ! $tour_id ) {
                $text_query = filter_var( $_REQUEST['tsearch'], FILTER_SANITIZE_STRING );
@@ -666,7 +664,6 @@ function glm_custom_show_tour() {
        global $wpdb, $wp;
     $tour_slug = get_query_var('tour', '');
     $tour = get_page_by_path( $tour_slug, ARRAY_A, GLM_CUSTOM_POST_TYPE );
-    echo '<pre>$tour: ' . print_r($tour, true) . '</pre>';
        include 'views/tour_detail.php';
        return;
 }