Plugin Directory

Changeset 1194056


Ignore:
Timestamp:
07/07/2015 12:29:05 PM (11 years ago)
Author:
markusklems
Message:

Minor bugfixes. Avoid errors when shortcode array index is not defined.

Location:
cloudwok-file-upload/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cloudwok-file-upload/trunk/cloudwok.php

    r1193926 r1194056  
    44Plugin URI: http://www.cloudwok.com
    55Description: CloudWok enables you to let your website visitors upload files directly into a Dropbox, Google Drive, Amazon S3, Box.com, or other cloud storage folder that you own.
    6 Version: 0.3
     6Version: 0.3.1
    77Author: CloudWok
    88Author Email: [email protected]
     
    3939            'show_downloads' => False,
    4040            'show_form' => True,
    41             'show_powered_by_link' => False,
     41            'show_powered_by_link' => False
    4242        ), $atts )
    4343    );
     
    4646    $show_downloads = '';
    4747    $show_form = '';
    48     $show_powered_by_link = 'data-pby="y"';
     48    $show_powered_by_link = '';
    4949
    50     if($atts['show_uploads']) {
     50    if(array_key_exists('show_uploads', $atts) && $atts['show_uploads']) {
    5151        $show_uploads = '<div class="cloudwok-upload-files"></div>';
    5252    }
    53     if($atts['show_downloads']) {
     53    if(array_key_exists('show_downloads', $atts) && $atts['show_downloads']) {
    5454        $show_downloads = '<div class="cloudwok-download-files"></div>';
    5555    }
    56     if($atts['show_form']) {
     56    if(array_key_exists('show_form', $atts) && $atts['show_form']) {
    5757        $show_form = '<div class="cloudwok-upload-message"></div>';
    5858    }
    59     if(!$atts['show_powered_by_link']) {
    60         $show_powered_by_link = 'data-pby="n"';
     59    if(array_key_exists('show_powered_by_link', $atts) && $atts['show_powered_by_link']) {
     60        $show_powered_by_link = 'data-pby="y"';
    6161    }
    6262
  • cloudwok-file-upload/trunk/readme.txt

    r1193951 r1194056  
    55Requires at least: 3.0.0
    66Tested up to: 4.2.2
    7 Stable tag: 0.3
     7Stable tag: 0.3.1
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    7171== Changelog ==
    7272
    73 No changes, yet.
     73= 0.3.1 =
     74Minor bugfixes.
    7475
    7576== Upgrade Notice ==
Note: See TracChangeset for help on using the changeset viewer.