Plugin Directory

Changeset 1357189


Ignore:
Timestamp:
02/24/2016 10:22:46 AM (10 years ago)
Author:
techxplorer
Message:

Update plugin to version 2.1.1

Location:
techxplorers-plugin-listicle/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • techxplorers-plugin-listicle/trunk/README.txt

    r1357070 r1357189  
    7575== Changelog ==
    7676
     77= 2.1.1 =
     78
     79* Improve determination of plugin slugs for icon retrieval
     80* A full list of fixes is [available here](https://github.com/techxplorer/txp-plugin-listicle/issues?q=is%3Aissue+milestone%3A2.1.1+)
     81
    7782= 2.1.0 =
    7883
  • techxplorers-plugin-listicle/trunk/admin/class-txp-plugin-listicle-admin.php

    r1357067 r1357189  
    192192            // Use the plugin title to derive a 'slug'.
    193193            $plugin = $all_plugins [ $idx ];
    194             $plugin['Txp_slug'] = sanitize_title( $plugin['Title'] );
     194
     195            // Determine the plugin slug.
     196            $slug = dirname( $idx );
     197            if ( '.' !== $slug ) {
     198                // Use the directory name as the slug.
     199                $plugin['Txp_slug'] = $slug;
     200            } else {
     201                // Otherwise use the sanitized title.
     202                $plugin['Txp_slug'] = sanitize_title( $plugin['Title'] );
     203            }
    195204
    196205            $plugins[ $idx ] = $plugin;
  • techxplorers-plugin-listicle/trunk/txp-plugin-listicle.php

    r1357067 r1357189  
    1616 * Plugin URI:        https://techxplorer.com/projects/txp-plugin-listicle
    1717 * Description:       Using a shortcode this plugin makes it easy to credit the authors of plugins used on your site.
    18  * Version:           2.1.0
     18 * Version:           2.1.1
    1919 * Author:            techxplorer
    2020 * Author URI:        https://techxplorer.com
Note: See TracChangeset for help on using the changeset viewer.