Plugin Directory

Changeset 1485121


Ignore:
Timestamp:
08/28/2016 03:21:07 PM (10 years ago)
Author:
bobbywalters
Message:

v1.3.1

Location:
webvtt/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • webvtt/trunk/includes/class-webvtt.php

    r1484941 r1485121  
    316316        }
    317317
    318         if ( empty( $attachments = get_posts( $args ) ) ) {
     318        $attachments = get_posts( $args );
     319        if ( empty( $attachments ) ) {
    319320            return '';
    320321        }
     
    391392            }
    392393
    393             if ( ! empty( $meta = wp_get_attachment_metadata( $a->ID ) ) ) {
     394            $meta = wp_get_attachment_metadata( $a->ID );
     395            if ( ! empty( $meta ) ) {
    394396                foreach ( wp_get_attachment_id3_keys( $a ) as $key => $label ) {
    395397                    if ( ! empty( $meta[ $key ] ) ) {
     
    418420            }
    419421
    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 ) ) ) {
    421423                $track['image'] = wp_get_attachment_image_src( $thumb_id, 'full' );
    422424                $track['thumb'] = wp_get_attachment_image_src( $thumb_id );
  • webvtt/trunk/readme.txt

    r1484941 r1485121  
    6767== Changelog ==
    6868
     69= 1.3.1 =
     702016-08-28
     71
     72* FIX: Updated usage of empty() to be compatible with PHP versions prior to 5.5.
     73
    6974= 1.3.0 =
    70752016-08-27
  • webvtt/trunk/webvtt.php

    r1484945 r1485121  
    66 * Author: Bobby Walters
    77 * Author URI: https://github.com/bobbywalters
    8  * Version: 1.3.0
     8 * Version: 1.3.1
    99 * Text Domain: webvtt
    1010 * Domain Path: /languages
Note: See TracChangeset for help on using the changeset viewer.