Plugin Directory

Changeset 1201473


Ignore:
Timestamp:
07/18/2015 07:25:55 AM (11 years ago)
Author:
dswpsupport
Message:

Version Updated

Location:
wp-custom-post-template/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • wp-custom-post-template/trunk/css/myStyle.css

    r887259 r1201473  
    2525    width: 260px;
    2626}
    27 .note_summry{font-style:italic;}
     27.note_summry{font-style:italic; float: left;}
    2828
    2929.msgText {
  • wp-custom-post-template/trunk/readme.txt

    r899168 r1201473  
    33Tags: post template, custom template for post, wp custom post template, custom post type, custom template, post from template, posts, templates, custom post template, custom theme template, simple post templates, single post templates, template, theme template, wordpress post template, wp post template
    44Requires at least: 3.0
    5 Tested up to: 3.9
     5Tested up to: 4.2
    66Donate link:
    77Stable tag: 2.1
     
    7575== Changelog ==
    7676
     77= 1.1 - 2015-07-18 =
     78* Updated according to new wp version functions.
     79
    7780= 1.0 =
    78 
    7981* A intial version.
  • wp-custom-post-template/trunk/wp-custom-post-template.php

    r887259 r1201473  
    8383<?php
    8484function wp_get_post_custom_templates() {
    85   $themes = get_themes();
    86   $theme = get_current_theme();
     85  if(function_exists('wp_get_themes')){
     86        $themes = wp_get_themes();
     87    }else{
     88        $themes = get_themes();
     89    }           
     90    $theme = get_option( 'template' );
    8791  $templates = $themes[$theme]['Template Files'];
    8892  $post_templates = array();
     
    135139  if ($post) {
    136140    $post_template = get_post_meta($post->ID,'_post_template',true);
     141
    137142    if (!empty($post_template) && $post_template!='default')
    138143      $template = get_stylesheet_directory() . "/{$post_template}";
    139144  }
     145 
    140146  return $template;
    141147}
Note: See TracChangeset for help on using the changeset viewer.