Plugin Directory

Changeset 1485125


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

v1.3.2

Location:
webvtt/trunk
Files:
3 edited

Legend:

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

    r1485121 r1485125  
    316316        }
    317317
    318         $attachments = get_posts( $args );
    319         if ( empty( $attachments ) ) {
     318        if ( ! $attachments = get_posts( $args ) ) {
    320319            return '';
    321320        }
     
    392391            }
    393392
    394             $meta = wp_get_attachment_metadata( $a->ID );
    395             if ( ! empty( $meta ) ) {
     393            if ( $meta = wp_get_attachment_metadata( $a->ID ) ) {
    396394                foreach ( wp_get_attachment_id3_keys( $a ) as $key => $label ) {
    397395                    if ( ! empty( $meta[ $key ] ) ) {
  • webvtt/trunk/readme.txt

    r1485121 r1485125  
    6767== Changelog ==
    6868
     69= 1.3.2 =
     702016-08-28
     71
     72* FIX: Removed unneeded `empty()` calls.
     73
    6974= 1.3.1 =
    70752016-08-28
    7176
    72 * FIX: Updated usage of empty() to be compatible with PHP versions prior to 5.5.
     77* FIX: Updated usage of `empty()` to be compatible with PHP versions prior to 5.5.
    7378
    7479= 1.3.0 =
  • webvtt/trunk/webvtt.php

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