Changeset 743658
- Timestamp:
- 07/20/2013 02:52:26 PM (13 years ago)
- Location:
- tb-testimonials/trunk
- Files:
-
- 3 edited
-
readme.txt (modified) (2 diffs)
-
tb-testimonials.php (modified) (3 diffs)
-
tbtestimonials-widget.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tb-testimonials/trunk/readme.txt
r711074 r743658 5 5 Requires at least: 3.0 6 6 Tested up to: 3.6 7 Stable tag: 1.7. 27 Stable tag: 1.7.3 8 8 9 9 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. … … 45 45 46 46 == 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. 47 51 48 52 = 1.7.2 = -
tb-testimonials/trunk/tb-testimonials.php
r711074 r743658 4 4 * Plugin URI: http://travisballard.com/wordpress/tb-testimonials/ 5 5 * 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. 26 * Version: 1.7.3 7 7 * Author: Travis Ballard 8 8 * Author URI: http://www.travisballard.com … … 393 393 { 394 394 $this->post_type = apply_filters( 'tbtestimonials_post_type', $this->post_type ); 395 395 396 extract( 396 397 shortcode_atts( … … 457 458 { 458 459 $q->the_post(); 459 $ this->prepare_testimonial( is_null( $template ) ? 'shortcode' : $template );460 $return .= $this->prepare_testimonial( is_null( $template ) ? 'shortcode' : $template ); 460 461 } 462 return $return; 461 463 } 462 464 else -
tb-testimonials/trunk/tbtestimonials-widget.php
r707530 r743658 41 41 $instance['orderby'] = esc_html( $new_instance['orderby'] ); 42 42 $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'] ); 46 44 47 45 $x = 0; … … 52 50 if( isset( $new_instance[ 'category_' . ++$x ] ) && ! empty( $new_instance[ 'category_' . $x ] ) ) 53 51 { 54 if( isset( $instance[ 'category_' . $x ] ) ) unset( $instance[ 'category_' . $x ] ); 52 if( isset( $instance[ 'category_' . $x ] ) ) 53 { 54 unset( $instance[ 'category_' . $x ] ); 55 } 56 55 57 $instance[ 'categories' ][ 'category_' . $x ] = esc_html( $new_instance[ 'category_' . $x ] ); 56 58 } 57 59 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 } 59 66 } 60 67
Note: See TracChangeset
for help on using the changeset viewer.