Plugin Directory

Changeset 1880466


Ignore:
Timestamp:
05/24/2018 05:35:02 AM (8 years ago)
Author:
pqina
Message:

fix issue where error is thrown if shortcode had no attributes

Location:
snippy/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • snippy/trunk/readme.txt

    r1878933 r1880466  
    55Requires at least: 4.5
    66Tested up to: 4.9.6
    7 Stable tag: 1.3.1
     7Stable tag: 1.3.2
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
  • snippy/trunk/snippy.php

    r1878933 r1880466  
    44Plugin URI: https://pqina.nl/snippy
    55Description: Snippy, create your own super flexible shortcodes
    6 Version: 1.3.1
     6Version: 1.3.2
    77Author: PQINA
    88Author URI: https://pqina.nl
     
    6262
    6363    // Snippy version
    64     public static $version = '1.3.1';
     64    public static $version = '1.3.2';
    6565
    6666    private static $_instance = null;
     
    301301                $info['unique_id'] = \uniqid();
    302302
     303                // create array if no
     304                if (!is_array($atts)) {
     305                    $atts = array();
     306                }
     307
    303308                // set data for placeholder dynamic replacements
    304309                $data = array_merge($atts, $info);
Note: See TracChangeset for help on using the changeset viewer.