Plugin Directory

Changeset 2208818


Ignore:
Timestamp:
12/09/2019 08:53:45 PM (6 years ago)
Author:
DobsonDev
Message:

Tagging version 2.1.12. Fixed an error with Parsedown where if someone else used the same plugin it would cause a fatal error.

Location:
dobsondev-shortcodes
Files:
4 edited
13 copied

Legend:

Unmodified
Added
Removed
  • dobsondev-shortcodes/tags/2.1.12/changelog.txt

    r2190986 r2208818  
    1313Bug Fixes
    1414
     15* Fixed bug with Parsedown if other plugins used the same library and didn't change the class name (2.1.12)
    1516* Tested up to WordPress 5.3 (2.1.11)
    1617* Tested up to WordPress 5.1 (2.1.10)
  • dobsondev-shortcodes/tags/2.1.12/dobsondev-shortcodes.php

    r2190986 r2208818  
    44 * Plugin URI: http://dobsondev.com/portfolio/dobsondev-shortcodes/
    55 * Description: A collection of helpful shortcodes.
    6  * Version: 2.1.11
     6 * Version: 2.1.12
    77 * Author: Alex Dobson
    88 * Author URI: http://dobsondev.com/
     
    2929define( 'DOBSONDEV_SHRTCODE_TEXTDOMAIN',  'dobsondev-shortcodes' );
    3030/* Define our version number for the plugin */
    31 define( 'DOBSONDEV_SHRTCODE_VER',  '2.1.11' );
     31define( 'DOBSONDEV_SHRTCODE_VER',  '2.1.12' );
    3232
    3333
     
    143143      $response_array = json_decode($response);
    144144      // var_dump($response_array);
    145       $parsedown = new Parsedown();
     145      $parsedown = new DobsonDevShortcodesParsedown();
    146146      $output_readme = $parsedown->text(base64_decode($response_array->content));
    147147      if ( $cache_id !== "NULL" || !empty( $cache_id ) ) {
     
    205205      // var_dump($response_array);
    206206      if (strcasecmp($markdown, "yes") == 0 || strcasecmp($markdown, "true") == 0) {
    207         $parsedown = new Parsedown();
     207        $parsedown = new DobsonDevShortcodesParsedown();
    208208        $output_md_file = $parsedown->text(base64_decode($response_array->content));
    209209        if ( $cache_id !== "NULL" || !empty( $cache_id ) ) {
     
    356356function dobsondev_shrtcode_kodi_addon_download($atts) {
    357357  extract(shortcode_atts(array(
    358     'addonid' => "NULL",
    359     'addonxmlurl' => "NULL",
     358    'addonid' => "NULL",
     359    'addonxmlurl' => "NULL",
    360360    'repoprefix' => ""
    361361  ), $atts));
     
    364364  } else {
    365365    $curl = curl_init();
    366     curl_setopt_array($curl, array(
    367       CURLOPT_RETURNTRANSFER => 1,
    368       CURLOPT_URL => $addonxmlurl,
    369       CURLOPT_USERAGENT => 'Repo Info Grabber 1.0',
    370       CURLOPT_HEADER => false,
    371       CURLOPT_SSL_VERIFYPEER => false
    372     ));
     366    curl_setopt_array($curl, array(
     367      CURLOPT_RETURNTRANSFER => 1,
     368      CURLOPT_URL => $addonxmlurl,
     369      CURLOPT_USERAGENT => 'Repo Info Grabber 1.0',
     370      CURLOPT_HEADER => false,
     371      CURLOPT_SSL_VERIFYPEER => false
     372    ));
    373373    $response = curl_exec($curl);
    374374    // var_dump($response);
  • dobsondev-shortcodes/tags/2.1.12/libs/Parsedown.php

    r1851269 r2208818  
    1414#
    1515
    16 class Parsedown
     16class DobsonDevShortcodesParsedown
    1717{
    1818    # ~
  • dobsondev-shortcodes/tags/2.1.12/readme.txt

    r2190986 r2208818  
    77Requires at least: 2.5
    88Tested up to: 5.3
    9 Stable tag: 2.1.11
     9Stable tag: 2.1.12
    1010
    1111Add a collection of helpful shortcodes to your site.
     
    188188Bug Fixes
    189189
     190* Fixed bug with Parsedown if other plugins used the same library and didn't change the class name (2.1.12)
     191* Tested up to WordPress 5.3 (2.1.11)
    190192* Tested up to WordPress 4.9 (2.1.8)
    191193* Setting markdown equal to "true" will now work for embedding GitHub files instead of just "yes" 4.7.4 (2.1.6)
  • dobsondev-shortcodes/trunk/changelog.txt

    r2190986 r2208818  
    1313Bug Fixes
    1414
     15* Fixed bug with Parsedown if other plugins used the same library and didn't change the class name (2.1.12)
    1516* Tested up to WordPress 5.3 (2.1.11)
    1617* Tested up to WordPress 5.1 (2.1.10)
  • dobsondev-shortcodes/trunk/dobsondev-shortcodes.php

    r2190986 r2208818  
    44 * Plugin URI: http://dobsondev.com/portfolio/dobsondev-shortcodes/
    55 * Description: A collection of helpful shortcodes.
    6  * Version: 2.1.11
     6 * Version: 2.1.12
    77 * Author: Alex Dobson
    88 * Author URI: http://dobsondev.com/
     
    2929define( 'DOBSONDEV_SHRTCODE_TEXTDOMAIN',  'dobsondev-shortcodes' );
    3030/* Define our version number for the plugin */
    31 define( 'DOBSONDEV_SHRTCODE_VER',  '2.1.11' );
     31define( 'DOBSONDEV_SHRTCODE_VER',  '2.1.12' );
    3232
    3333
     
    143143      $response_array = json_decode($response);
    144144      // var_dump($response_array);
    145       $parsedown = new Parsedown();
     145      $parsedown = new DobsonDevShortcodesParsedown();
    146146      $output_readme = $parsedown->text(base64_decode($response_array->content));
    147147      if ( $cache_id !== "NULL" || !empty( $cache_id ) ) {
     
    205205      // var_dump($response_array);
    206206      if (strcasecmp($markdown, "yes") == 0 || strcasecmp($markdown, "true") == 0) {
    207         $parsedown = new Parsedown();
     207        $parsedown = new DobsonDevShortcodesParsedown();
    208208        $output_md_file = $parsedown->text(base64_decode($response_array->content));
    209209        if ( $cache_id !== "NULL" || !empty( $cache_id ) ) {
     
    356356function dobsondev_shrtcode_kodi_addon_download($atts) {
    357357  extract(shortcode_atts(array(
    358     'addonid' => "NULL",
    359     'addonxmlurl' => "NULL",
     358    'addonid' => "NULL",
     359    'addonxmlurl' => "NULL",
    360360    'repoprefix' => ""
    361361  ), $atts));
     
    364364  } else {
    365365    $curl = curl_init();
    366     curl_setopt_array($curl, array(
    367       CURLOPT_RETURNTRANSFER => 1,
    368       CURLOPT_URL => $addonxmlurl,
    369       CURLOPT_USERAGENT => 'Repo Info Grabber 1.0',
    370       CURLOPT_HEADER => false,
    371       CURLOPT_SSL_VERIFYPEER => false
    372     ));
     366    curl_setopt_array($curl, array(
     367      CURLOPT_RETURNTRANSFER => 1,
     368      CURLOPT_URL => $addonxmlurl,
     369      CURLOPT_USERAGENT => 'Repo Info Grabber 1.0',
     370      CURLOPT_HEADER => false,
     371      CURLOPT_SSL_VERIFYPEER => false
     372    ));
    373373    $response = curl_exec($curl);
    374374    // var_dump($response);
  • dobsondev-shortcodes/trunk/libs/Parsedown.php

    r1851269 r2208818  
    1414#
    1515
    16 class Parsedown
     16class DobsonDevShortcodesParsedown
    1717{
    1818    # ~
  • dobsondev-shortcodes/trunk/readme.txt

    r2190986 r2208818  
    77Requires at least: 2.5
    88Tested up to: 5.3
    9 Stable tag: 2.1.11
     9Stable tag: 2.1.12
    1010
    1111Add a collection of helpful shortcodes to your site.
     
    188188Bug Fixes
    189189
     190* Fixed bug with Parsedown if other plugins used the same library and didn't change the class name (2.1.12)
     191* Tested up to WordPress 5.3 (2.1.11)
    190192* Tested up to WordPress 4.9 (2.1.8)
    191193* Setting markdown equal to "true" will now work for embedding GitHub files instead of just "yes" 4.7.4 (2.1.6)
Note: See TracChangeset for help on using the changeset viewer.