WordPress.org

Plugin Directory

Changeset 521408


Ignore:
Timestamp:
03/20/12 17:33:08 (2 years ago)
Author:
eddiemoya
Message:

Fixed problem where category.php was unavailable

Location:
category-template-hierarchy/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • category-template-hierarchy/trunk/category-template-hierarchy.php

    r521011 r521408  
    44Description:  Adds parent-category.php & child-category.php to the template hierarchy with all the normal hierarchical behavior with conditional tags to match: is_child_category() and is_parent_category() 
    55Author: Eddie Moya 
    6 Version: 1.3 
     6Version: 1.3.1 
    77*/ 
    88 
     
    6161        $templates[] = "{$template}-{$category->slug}.php"; 
    6262 
    63          
    6463        if(in_array('child', $template_prefix)){ 
    6564            $templates[] = "child-of-{$template}-{$category->parent}.php"; 
     
    6968        $templates = array_merge($templates, self::add_template_set($template_prefix)); 
    7069         
     70        $templates[] = "category.php"; 
    7171        $templates[] = "archive.php"; 
    7272        $templates[] = "index.php";  
  • category-template-hierarchy/trunk/readme.txt

    r518076 r521408  
    218218 
    219219== Upgrade Notice == 
     220= 1.3.1 = 
     221Important Update - Bug Fix: Missing 'category.php' template fixed. 
     222 
    220223= 1.3 = 
    221224Multiple Bug Fixes - [Fixed] global scope variables not being available in scope, and fixed bug where plugin was interfering with other non-category parts of the native Template Hierarchy. See changelog for details. 
     
    243246 
    244247== Changelog == 
     248 
     249= 1.3.1 = 
     250* Bug: [FIXED] Plugin was not finding 'category.php' when it was available. 
    245251 
    246252= 1.3 = 
Note: See TracChangeset for help on using the changeset viewer.