WordPress.org

Plugin Directory

Changeset 856708


Ignore:
Timestamp:
02/12/14 22:45:48 (16 months ago)
Author:
joedolson
Message:

Bug fix: custom templates overridden by post type templates.

Location:
my-content-management/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • my-content-management/trunk/mcm-view-custom-posts.php

    r850139 r856708  
    319319    $post_type = get_post_type( $post['id'] ); 
    320320    $keys = array_keys($mcm_types); 
    321     if ( !in_array( $post_type,$keys,true ) ) { 
    322         $type = $type; 
    323     } else { 
    324         $type = $post_type; 
     321    if ( $display != 'custom' ) { 
     322        if ( !in_array( $post_type,$keys,true ) ) { 
     323            $type = $type; 
     324        } else { 
     325            $type = $post_type; 
     326        } 
    325327    } 
    326328    $return = ''; 
  • my-content-management/trunk/my-content-management.php

    r855060 r856708  
    66Author: Joseph C Dolson 
    77Author URI: http://www.joedolson.com 
    8 Version: 1.4.7 
     8Version: 1.4.8 
    99*/ 
    1010/*  Copyright 2011-2012  Joe Dolson (email : joe@joedolson.com) 
     
    2626if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly 
    2727 
    28 $mcm_version = '1.4.7'; 
     28$mcm_version = '1.4.8'; 
    2929// Enable internationalisation 
    3030load_plugin_textdomain( 'my-content-management',false, dirname( plugin_basename( __FILE__ ) ) . '/lang' );  
  • my-content-management/trunk/readme.txt

    r855060 r856708  
    6060== Changelog == 
    6161 
     62= 1.4.8 = 
     63 
     64* Bug fix: type checking to use current post type's preferred template overrode custom template settings. 
     65 
    6266= 1.4.7 = 
    6367 
Note: See TracChangeset for help on using the changeset viewer.