Plugin Directory

Changeset 1323966


Ignore:
Timestamp:
01/08/2016 12:51:56 PM (10 years ago)
Author:
cip
Message:

2.1.3

Location:
enhanced-category-pages/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • enhanced-category-pages/trunk/classes/ecp/Enhanced_Category.php

    r1308969 r1323966  
    222222        if (empty($cur_cat_id)) {
    223223            //get global category/term id
    224             $query_var = get_query_var("taxonomy");
    225 
    226             if ( empty($query_var) ) {
    227                 $cur_cat_id = get_cat_id(single_cat_title("", false));
    228             } else {
    229                 $term = get_term_by('slug', get_query_var("term"), $query_var);
    230                 $cur_cat_id = $term->term_id;
     224            $current_term = get_queried_object();
     225
     226            if ($current_term) {
     227                $cur_cat_id = $current_term->term_id;
    231228            }
    232229        }
  • enhanced-category-pages/trunk/enhanced-category-pages.php

    r1308969 r1323966  
    44Description: Create custom enhanced pages for categories. Manage category page as a custom post.
    55Author: Ciprian Amariei, Diana Amitroaei
    6 Version: 2.1.2
     6Version: 2.1.3
    77Text Domain: enhanced-category-pages
    88Text Path: languages
  • enhanced-category-pages/trunk/readme.txt

    r1308969 r1323966  
    55Requires at least: 3.0.1
    66Tested up to: 4.4
    7 Stable tag: 2.1.2
     7Stable tag: 2.1.3
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    165165* Add WordPress 4.4 compatibility
    166166
     167= 2.1.3 =
     168* Bug fix: correctly handle categories with apostrophes
     169
    167170== Upgrade Notice ==
    168171
     
    193196= 2.1.2 =
    194197* Add WordPress 4.4 compatibility
     198
     199= 2.1.3 =
     200* Bug fix: correctly handle categories with apostrophes
Note: See TracChangeset for help on using the changeset viewer.