Plugin Directory

Changeset 2489710


Ignore:
Timestamp:
03/08/2021 04:30:08 PM (5 years ago)
Author:
kryptonitewp
Message:

Update to version 1.2.1 from GitHub

Location:
wp-udemy
Files:
14 deleted
16 edited
1 copied

Legend:

Unmodified
Added
Removed
  • wp-udemy/assets/banner-1544x500.png

    • Property svn:mime-type changed from application/octet-stream to image/png
  • wp-udemy/assets/banner-772x250.png

    • Property svn:mime-type changed from application/octet-stream to image/png
  • wp-udemy/assets/icon-128x128.png

    • Property svn:mime-type changed from application/octet-stream to image/png
  • wp-udemy/assets/icon-256x256.png

    • Property svn:mime-type changed from application/octet-stream to image/png
  • wp-udemy/assets/screenshot-1.png

    • Property svn:mime-type changed from application/octet-stream to image/png
  • wp-udemy/assets/screenshot-2.png

    • Property svn:mime-type changed from application/octet-stream to image/png
  • wp-udemy/assets/screenshot-3.png

    • Property svn:mime-type changed from application/octet-stream to image/png
  • wp-udemy/assets/screenshot-4.png

    • Property svn:mime-type changed from application/octet-stream to image/png
  • wp-udemy/assets/screenshot-5.png

    • Property svn:mime-type changed from application/octet-stream to image/png
  • wp-udemy/assets/screenshot-6.png

    • Property svn:mime-type changed from application/octet-stream to image/png
  • wp-udemy/tags/1.2.1/includes/functions.php

    r2449422 r2489710  
    695695        return null;
    696696
    697     // Upload image
    698     $file_extension = substr( $file_url , strrpos( $file_url, '.' ) + 1 );
     697    // Omit file hash, if exists
     698    list( $file_url_without_hash ) = explode( '?', $file_url );
     699
     700    $haystack = ( $file_url_without_hash ) ? $file_url_without_hash : $file_url;
     701
     702    $file_extension = substr( $haystack , strrpos( $haystack, '.' ) + 1 );
    699703
    700704    if ( ! in_array( $file_extension, array( 'jpg', 'jpeg', 'png' ) ) )
    701705        return array( 'error' => __( 'Sorry, this file type is not permitted for security reasons.' ) );
    702706
     707    // Upload image
    703708    $file_upload_dir = ufwp_get_downloaded_course_images_path();
    704709
  • wp-udemy/tags/1.2.1/readme.txt

    r2449422 r2489710  
    55Requires at least: 3.5.1
    66Requires PHP: 5.6.0
    7 Tested up to: 5.6.0
    8 Stable tag: 1.2.0
     7Tested up to: 5.6.2
     8Stable tag: 1.2.1
    99License: GPLv3 or later
    1010License URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    122122== Changelog ==
    123123
     124= Version 1.2.1 (8th March 2021) =
     125* Fix: Displaying downloaded course images didn't work
     126* WordPress v5.6.2 compatibility
     127
    124128= Version 1.2.0 (3rd January 2021) =
    125129* Tweak: API credentials validation now shows an error in case the site/domain is being blocked by the Udemy firewall
  • wp-udemy/tags/1.2.1/wp-udemy.php

    r2449422 r2489710  
    44 * Plugin URI:      https://wordpress.org/plugins/wp-udemy/
    55 * Description:     Display Online Learning Courses from the Udemy™ platform inside your WordPress posts and pages.
    6  * Version:         1.2.0
     6 * Version:         1.2.1
    77 * Author:          KryptoniteWP
    88 * Author URI:      https://kryptonitewp.com
     
    6565
    6666            // Plugin version
    67             define( 'UFWP_VER', '1.2.0' );
     67            define( 'UFWP_VER', '1.2.1' );
    6868
    6969            // Plugin path
  • wp-udemy/trunk/includes/functions.php

    r2449422 r2489710  
    695695        return null;
    696696
    697     // Upload image
    698     $file_extension = substr( $file_url , strrpos( $file_url, '.' ) + 1 );
     697    // Omit file hash, if exists
     698    list( $file_url_without_hash ) = explode( '?', $file_url );
     699
     700    $haystack = ( $file_url_without_hash ) ? $file_url_without_hash : $file_url;
     701
     702    $file_extension = substr( $haystack , strrpos( $haystack, '.' ) + 1 );
    699703
    700704    if ( ! in_array( $file_extension, array( 'jpg', 'jpeg', 'png' ) ) )
    701705        return array( 'error' => __( 'Sorry, this file type is not permitted for security reasons.' ) );
    702706
     707    // Upload image
    703708    $file_upload_dir = ufwp_get_downloaded_course_images_path();
    704709
  • wp-udemy/trunk/readme.txt

    r2449422 r2489710  
    55Requires at least: 3.5.1
    66Requires PHP: 5.6.0
    7 Tested up to: 5.6.0
    8 Stable tag: 1.2.0
     7Tested up to: 5.6.2
     8Stable tag: 1.2.1
    99License: GPLv3 or later
    1010License URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    122122== Changelog ==
    123123
     124= Version 1.2.1 (8th March 2021) =
     125* Fix: Displaying downloaded course images didn't work
     126* WordPress v5.6.2 compatibility
     127
    124128= Version 1.2.0 (3rd January 2021) =
    125129* Tweak: API credentials validation now shows an error in case the site/domain is being blocked by the Udemy firewall
  • wp-udemy/trunk/wp-udemy.php

    r2449422 r2489710  
    44 * Plugin URI:      https://wordpress.org/plugins/wp-udemy/
    55 * Description:     Display Online Learning Courses from the Udemy™ platform inside your WordPress posts and pages.
    6  * Version:         1.2.0
     6 * Version:         1.2.1
    77 * Author:          KryptoniteWP
    88 * Author URI:      https://kryptonitewp.com
     
    6565
    6666            // Plugin version
    67             define( 'UFWP_VER', '1.2.0' );
     67            define( 'UFWP_VER', '1.2.1' );
    6868
    6969            // Plugin path
Note: See TracChangeset for help on using the changeset viewer.