Plugin Directory

Changeset 711074


Ignore:
Timestamp:
05/10/2013 08:33:54 PM (13 years ago)
Author:
ansimation
Message:

Fixes bug in TBTestimonials() function when outputting categories.

Location:
tb-testimonials/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • tb-testimonials/trunk/readme.txt

    r707530 r711074  
    11=== TBTestimonials ===
    22Contributors: ansimation
    3 Donate link: http://visitfloridastateparks.com/donate/
     3Donate link: http://travisballard.com/donate/
    44Tags: testimonial, testimonials, quote, quotes, business, client, customer, testimony, reference, ajax, widget, testimonial widget, custom post type
    55Requires at least: 3.0
    66Tested up to: 3.6
    7 Stable tag: 1.7.1
     7Stable tag: 1.7.2
    88
    99Powerful Testimonial Management. Create and use custom Output Templates anywhere on your site. Use the shortcode, function, or included widget to display your testimonials to your users.
     
    4545
    4646== Changelog ==
     47
     48= 1.7.2 =
     49* Fixes a bug in tbtestimonial() function where category names being passed do not work correctly because of is_numeric conditional
    4750
    4851= 1.7.1 =
  • tb-testimonials/trunk/tb-testimonials.php

    r707530 r711074  
    44*   Plugin URI: http://travisballard.com/wordpress/tb-testimonials/
    55*   Description: Powerful Testimonial Management. Create and use custom Output Templates anywhere on your site. Use the shortcode, function, or included widget to display your testimonials to your users.
    6 *   Version: 1.7.1
     6*   Version: 1.7.2
    77*   Author: Travis Ballard
    88*   Author URI: http://www.travisballard.com
     
    10311031    elseif( is_numeric( $id ) && ! $cat )
    10321032        $q = new WP_Query( array( 'p' => (int)$id, 'post_type' => 'testimonial', 'post_status' => 'publish' ) );
    1033     elseif( is_numeric( $id ) && $cat )
    1034         $q = new WP_Query( array( 'testimonial_category' => $id, 'post_type' => 'testimonial', 'post_status' => 'publish' ) );
     1033    elseif( is_string( $id ) && $cat )
     1034        $q = new WP_Query( array( 'testimonial_category' => $id, 'post_type' => 'testimonial', 'post_status' => 'publish', 'orderby' => $orderby, 'order' => $order ) );
    10351035    else
    10361036        return false;
Note: See TracChangeset for help on using the changeset viewer.