Plugin Directory

Changeset 743658


Ignore:
Timestamp:
07/20/2013 02:52:26 PM (13 years ago)
Author:
ansimation
Message:

1.7.3

  • Fixes bug in shortcode output where a single ID is used. - Thanks Kai!
  • Fixes bug in widget where new users after 7.0 was released could not change output template due to legacy api code.
Location:
tb-testimonials/trunk
Files:
3 edited

Legend:

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

    r711074 r743658  
    55Requires at least: 3.0
    66Tested up to: 3.6
    7 Stable tag: 1.7.2
     7Stable tag: 1.7.3
    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.3 =
     49* Fixes bug in shortcode output where a single ID is used. - Thanks Kai!
     50* Fixes bug in widget where new users after 7.0 was released could not change output template due to legacy api code.
    4751
    4852= 1.7.2 =
  • tb-testimonials/trunk/tb-testimonials.php

    r711074 r743658  
    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.2
     6*   Version: 1.7.3
    77*   Author: Travis Ballard
    88*   Author URI: http://www.travisballard.com
     
    393393    {
    394394        $this->post_type = apply_filters( 'tbtestimonials_post_type', $this->post_type );
     395
    395396        extract(
    396397            shortcode_atts(
     
    457458                    {
    458459                        $q->the_post();
    459                         $this->prepare_testimonial( is_null( $template ) ? 'shortcode' : $template );
     460                        $return .= $this->prepare_testimonial( is_null( $template ) ? 'shortcode' : $template );
    460461                    }
     462                    return $return;
    461463                }
    462464                else
  • tb-testimonials/trunk/tbtestimonials-widget.php

    r707530 r743658  
    4141        $instance['orderby'] = esc_html( $new_instance['orderby'] );
    4242        $instance['transition'] = esc_html( $new_instance['transition'] );
    43 
    44         if( isset( $tbtestimonials->settings['use_template_api'] ) )
    45             $instance['template'] = esc_html( $new_instance['template'] );
     43        $instance['template'] = esc_html( $new_instance['template'] );
    4644
    4745        $x = 0;
     
    5250            if( isset( $new_instance[ 'category_' . ++$x ] ) && ! empty( $new_instance[ 'category_' . $x ] ) )
    5351            {
    54                 if( isset( $instance[ 'category_' . $x ] ) ) unset( $instance[ 'category_' . $x ] );
     52                if( isset( $instance[ 'category_' . $x ] ) )
     53                {
     54                    unset( $instance[ 'category_' . $x ] );
     55                }
     56
    5557                $instance[ 'categories' ][ 'category_' . $x ] = esc_html( $new_instance[ 'category_' . $x ] );
    5658            }
    5759            else
    58                 if( isset( $instance['categories'][ 'category_' . $x ] ) ) unset( $instance['categories'][ 'category_' . $x ] );
     60            {
     61                if( isset( $instance['categories'][ 'category_' . $x ] ) )
     62                {
     63                    unset( $instance['categories'][ 'category_' . $x ] );
     64                }
     65            }
    5966        }
    6067
Note: See TracChangeset for help on using the changeset viewer.