Changeset 1485121
- Timestamp:
- 08/28/2016 03:21:07 PM (10 years ago)
- Location:
- webvtt/trunk
- Files:
-
- 3 edited
-
includes/class-webvtt.php (modified) (3 diffs)
-
readme.txt (modified) (1 diff)
-
webvtt.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
webvtt/trunk/includes/class-webvtt.php
r1484941 r1485121 316 316 } 317 317 318 if ( empty( $attachments = get_posts( $args ) ) ) { 318 $attachments = get_posts( $args ); 319 if ( empty( $attachments ) ) { 319 320 return ''; 320 321 } … … 391 392 } 392 393 393 if ( ! empty( $meta = wp_get_attachment_metadata( $a->ID ) ) ) { 394 $meta = wp_get_attachment_metadata( $a->ID ); 395 if ( ! empty( $meta ) ) { 394 396 foreach ( wp_get_attachment_id3_keys( $a ) as $key => $label ) { 395 397 if ( ! empty( $meta[ $key ] ) ) { … … 418 420 } 419 421 420 if ( true === $atts['images'] && ! empty( $thumb_id = get_post_thumbnail_id( $a->ID ) ) ) {422 if ( true === $atts['images'] && ( $thumb_id = get_post_thumbnail_id( $a->ID ) ) ) { 421 423 $track['image'] = wp_get_attachment_image_src( $thumb_id, 'full' ); 422 424 $track['thumb'] = wp_get_attachment_image_src( $thumb_id ); -
webvtt/trunk/readme.txt
r1484941 r1485121 67 67 == Changelog == 68 68 69 = 1.3.1 = 70 2016-08-28 71 72 * FIX: Updated usage of empty() to be compatible with PHP versions prior to 5.5. 73 69 74 = 1.3.0 = 70 75 2016-08-27 -
webvtt/trunk/webvtt.php
r1484945 r1485121 6 6 * Author: Bobby Walters 7 7 * Author URI: https://github.com/bobbywalters 8 * Version: 1.3. 08 * Version: 1.3.1 9 9 * Text Domain: webvtt 10 10 * Domain Path: /languages
Note: See TracChangeset
for help on using the changeset viewer.