Plugin Directory

Changeset 2119785


Ignore:
Timestamp:
07/09/2019 01:12:18 AM (7 years ago)
Author:
Jayce53
Message:

Version 1.1.1699

Location:
easyindex/trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • easyindex/trunk/easyindex.php

    r2101370 r2119785  
    55Description: WordPress indexes made easy.
    66Author: Jayce53
    7 Version: 1.1.1698
     7Version: 1.1.1699
    88Author URI: https://easyindexplugin.com
    99License: GPLv2 or later
  • easyindex/trunk/lib/EasyIndex.php

    r2101370 r2119785  
    8080         * The standard WP functions for getting the plugin's dir name and URL won't work if we symlink the latest version into the plugin directory like our test suite does
    8181         */
    82         self::$pluginVersion   = "1.1.1698";
     82        self::$pluginVersion   = "1.1.1699";
    8383        self::$pluginName      = "easyindex/easyindex.php";
    8484        self::$EasyIndexDir = trailingslashit(WP_PLUGIN_DIR) . "easyindex";
  • easyindex/trunk/lib/EasyIndexDiagnostics.php

    r2101370 r2119785  
    3232
    3333    public $pluginName = 'easyindex';
    34     public $pluginVersion = '1.1.1698';
     34    public $pluginVersion = '1.1.1699';
    3535
    3636    public $pluginURL = '';
     
    330330            if (isset($response['response']) && $response['response']['code'] == 200) {
    331331                /**
    332                  * Freshdesk support endpoints return json, earlier support enpoints return a status as a string
     332                 * Freshdesk support endpoints return json with ticket details, earlier support endpoints return a status as a string
     333                 * Earlier versions returned HTML to be displayed - the latest version returns the ticket URL and the user's email
    333334                 */
    334                 $response = json_decode($response['body']);
    335                 if (!$response) {
     335                $decoded = json_decode($response['body']);
     336                if (!$decoded) {
    336337                    $result->status = $response['body'];
    337338                } else {
    338                     $result->status = $response->status;
    339                     $result->html = stripslashes($response->html);
    340                     if (!empty($response->result)) {
    341                         $result->result = stripslashes($response->result);
     339                    $result->status = $decoded->status;
     340                    if (!empty($decoded->html)) {
     341                        $result->html = stripslashes($decoded->html);
    342342                    }
    343                     if (!empty($response->error)) {
    344                         $result->result = stripslashes($response->error);
     343                    if (!empty($decoded->tkUrl)) {
     344                        $result->tkUrl = stripslashes($decoded->tkUrl);
    345345                    }
    346 
     346                    if (!empty($decoded->email)) {
     347                        $result->email = stripslashes($decoded->email);
     348                    }
     349                    if (!empty($decoded->result)) {
     350                        $result->result = stripslashes($decoded->result);
     351                    }
     352                    if (!empty($decoded->error)) {
     353                        $result->result = stripslashes($decoded->error);
     354                    }
    347355                }
    348356
  • easyindex/trunk/lib/EasyIndexIndex.php

    r2094227 r2119785  
    142142            }
    143143        }
    144         wp_cache_add($cachekey, $html);
     144        wp_cache_add($cachekey, $html,"easyindex");
    145145        return $html;
    146146
     
    762762        $template = $indexStyle->getTemplate($tags);
    763763        $html = $template->replace($data);
    764         wp_cache_add($cachekey, $html);
     764        wp_cache_add($cachekey, $html,"easyindex");
    765765
    766766        return $html;
     
    10711071            $q .= "JOIN $wpdb->term_taxonomy ON $wpdb->term_taxonomy.term_taxonomy_id = $wpdb->term_relationships.term_taxonomy_id ";
    10721072            $q .= "WHERE $wpdb->term_taxonomy.term_taxonomy_id IN  ($taxonomies) AND post_status = 'publish' AND taxonomy = '$indexTaxonomy' ";
     1073            $q .= "AND post_type = 'post' ";
    10731074            $q .= $lastKey <> "-1" ? "AND $sortField '$lastKey' " : '';
    10741075            $q .= $orderBy != '' ? "ORDER BY $orderBy" : '';
     
    10801081            $q .= "JOIN $wpdb->term_taxonomy ON $wpdb->term_taxonomy.term_taxonomy_id = $wpdb->term_relationships.term_taxonomy_id ";
    10811082            $q .= "WHERE $wpdb->term_taxonomy.term_taxonomy_id IN  ($taxonomies) AND post_status = 'publish' AND taxonomy = '$indexTaxonomy' ";
     1083            $q .= "AND post_type = 'post' ";
    10821084            $q .= $lastKey <> "-1" ? "AND $sortField '$lastKey' " : '';
    10831085            $q .= $orderBy != '' ? "ORDER BY $orderBy" : '';
  • easyindex/trunk/lib/EasyIndexStyle.php

    r2101370 r2119785  
    223223     */
    224224    public function getCSSUrl() {
    225         return EasyIndex::$EasyIndexUrl . "/styles/$this->id/style.css?v=1.1.1698";
     225        return EasyIndex::$EasyIndexUrl . "/styles/$this->id/style.css?v=1.1.1699";
    226226    }
    227227
  • easyindex/trunk/readme.txt

    r2101370 r2119785  
    44Tags: index, recipe index, product index, thumbnail gallery, post gallery, visual index, post index
    55Requires at least: 3.9
    6 Tested up to: 5.2.1
    7 Stable tag: 1.1.1698
     6Tested up to: 5.2.2
     7Stable tag: 1.1.1699
    88
    99Wordpress indexes made easy! EasyIndex makes post indexes, recipe indexes, product indexes and more in just minutes. Easy to use, easy to customize.
     
    108108== Changelog ==
    109109
    110 = 1.1.1698 =
     110= 1.1.1699 =
     111Update: Tested with WordPress 5.2.2
     112Update: Change to work with Revision Manager TMC plugin
     113Fix:  Minor fix for index html caching
     114
     115= 1.1 Build 1698 =
    111116Update: Workarounds for PHP 7 compatibility issues incorrectly reported by PHP Code Sniffer "PHPCompatibility" checks
    112117
Note: See TracChangeset for help on using the changeset viewer.