Plugin Directory

Changeset 1734078


Ignore:
Timestamp:
09/22/2017 04:25:39 AM (8 years ago)
Author:
rinatkhaziev
Message:

Merge 1.3.1 from github

Location:
frontend-uploader/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • frontend-uploader/trunk/frontend-uploader.php

    r1728963 r1734078  
    44Description: Allow your visitors to upload content and moderate it.
    55Author: Rinat Khaziev, Daniel Bachhuber
    6 Version: 1.3
     6Version: 1.3.1
    77Author URI: http://digitallyconscious.com
    88
     
    2626
    2727// Define consts and bootstrap and dependencies
    28 define( 'FU_VERSION', '1.3' );
     28define( 'FU_VERSION', '1.3.1' );
    2929define( 'FU_ROOT' , dirname( __FILE__ ) );
    3030define( 'FU_FILE_PATH' , FU_ROOT . '/' . basename( __FILE__ ) );
     
    682682        require_once FU_ROOT . '/lib/php/class-frontend-uploader-wp-posts-list-table.php';
    683683
    684         $file = FU_ROOT . "/lib/views/manage-ugc-{$view}.tpl.php";
    685 
    686         if ( 0 === validate_file( $file ) ) {
    687             include_once $file;
     684        $file = "lib/views/manage-ugc-{$view}.tpl.php";
     685
     686        // Supply relative path to validate_file as it fails to validate absolute paths on Windows (due to colon)
     687        if ( 0 === validate_file( $file ) && file_exists( FU_ROOT . '/' . $file ) ) {
     688            include_once FU_ROOT . '/' . $file;
     689        } else {
     690            wp_die( __( "Couldn't find template file", 'frontend-uploader' ) );
    688691        }
    689692    }
     
    13941397            ),
    13951398            'fu-suspicious-file' => array(
    1396                 'text' =>__( "The file you tried to upload looks suspicious. This incedent will be reported.", 'frontend-uploader' ),
     1399                'text' =>__( "The file you tried to upload looks suspicious. This incident will be reported.", 'frontend-uploader' ),
    13971400            ),
    13981401        );
  • frontend-uploader/trunk/readme.txt

    r1728963 r1734078  
    44Tags: frontend, image, images, media, uploader, upload, video, audio, photo, photos, picture, pictures, file, user generated content, ugc, frontend upload
    55Requires at least: 4.1
    6 Tested up to: 4.8.1
    7 Stable tag: 1.3
     6Tested up to: 4.8.2
     7Stable tag: 1.3.1
    88License: GPLv2 or later
    99
     
    341341== Changelog ==
    342342
     343= 1.3.1 (Sep 21, 2017) =
     344* Bugfix: fix blank page in Manage UGC on Windows machines
     345
    343346= 1.3 (Sep 12, 2017 )
    344347* Add HTML5 attributes - min, max, placeholder, readonly, disabled
Note: See TracChangeset for help on using the changeset viewer.