Plugin Directory

Changeset 841939


Ignore:
Timestamp:
01/20/2014 06:21:57 PM (12 years ago)
Author:
sutherlandboswell
Message:

Fixed image download test bug

Location:
video-thumbnails
Files:
2 edited
24 copied

Legend:

Unmodified
Added
Removed
  • video-thumbnails/tags/2.4.2/readme.txt

    r840515 r841939  
    55Requires at least: 3.1
    66Tested up to: 3.8
    7 Stable tag: 2.4.1
     7Stable tag: 2.4.2
    88
    99Video Thumbnails simplifies the process of automatically displaying video thumbnails in your WordPress template.
     
    111111
    112112== Changelog ==
     113
     114= 2.4.2 =
     115* Fixed bug with image download test
    113116
    114117= 2.4.1 =
  • video-thumbnails/tags/2.4.2/video-thumbnails.php

    r840515 r841939  
    66Author: Sutherland Boswell
    77Author URI: http://sutherlandboswell.com
    8 Version: 2.4.1
     8Version: 2.4.2
    99License: GPL2
    1010*/
     
    2929define( 'VIDEO_THUMBNAILS_PATH', dirname(__FILE__) );
    3030define( 'VIDEO_THUMBNAILS_FIELD', '_video_thumbnail' );
    31 define( 'VIDEO_THUMBNAILS_VERSION', '2.4.1' );
     31define( 'VIDEO_THUMBNAILS_VERSION', '2.4.2' );
    3232
    3333// Providers
     
    289289     * @return string          A filename (without the extension)
    290290     */
    291     function construct_filename( $post_id ) {
     291    static function construct_filename( $post_id ) {
    292292        $filename = get_the_title( $post_id );
    293293        $filename = sanitize_title( $filename, $post_id );
     
    321321
    322322            // Construct a file name with extension
    323             $new_filename = $this->construct_filename( $post_id ) . $image_extension;
     323            $new_filename = self::construct_filename( $post_id ) . $image_extension;
    324324
    325325            // Save the image bits using the new filename
  • video-thumbnails/trunk/readme.txt

    r840515 r841939  
    55Requires at least: 3.1
    66Tested up to: 3.8
    7 Stable tag: 2.4.1
     7Stable tag: 2.4.2
    88
    99Video Thumbnails simplifies the process of automatically displaying video thumbnails in your WordPress template.
     
    111111
    112112== Changelog ==
     113
     114= 2.4.2 =
     115* Fixed bug with image download test
    113116
    114117= 2.4.1 =
  • video-thumbnails/trunk/video-thumbnails.php

    r840515 r841939  
    66Author: Sutherland Boswell
    77Author URI: http://sutherlandboswell.com
    8 Version: 2.4.1
     8Version: 2.4.2
    99License: GPL2
    1010*/
     
    2929define( 'VIDEO_THUMBNAILS_PATH', dirname(__FILE__) );
    3030define( 'VIDEO_THUMBNAILS_FIELD', '_video_thumbnail' );
    31 define( 'VIDEO_THUMBNAILS_VERSION', '2.4.1' );
     31define( 'VIDEO_THUMBNAILS_VERSION', '2.4.2' );
    3232
    3333// Providers
     
    289289     * @return string          A filename (without the extension)
    290290     */
    291     function construct_filename( $post_id ) {
     291    static function construct_filename( $post_id ) {
    292292        $filename = get_the_title( $post_id );
    293293        $filename = sanitize_title( $filename, $post_id );
     
    321321
    322322            // Construct a file name with extension
    323             $new_filename = $this->construct_filename( $post_id ) . $image_extension;
     323            $new_filename = self::construct_filename( $post_id ) . $image_extension;
    324324
    325325            // Save the image bits using the new filename
Note: See TracChangeset for help on using the changeset viewer.