Plugin Directory

Changeset 847740


Ignore:
Timestamp:
01/29/2014 04:08:42 PM (12 years ago)
Author:
Aurelien
Message:

WP 3.8.1 compat

Location:
display-template-name/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • display-template-name/trunk/display-template-name.php

    r647427 r847740  
    33Plugin Name: Display Template Name
    44Description: Displays the name of the template used by the currently displayed page. Plugins very useful for developing your blog.
    5 Version: 1.4
     5Version: 1.5
    66Author: Aurélien Chappard
    77Author URI: http://www.deefuse.fr/
     
    6363                    <h2>Display Template Name</h2>
    6464                    <?php
    65                         $themes = get_themes();
    66                         $current_theme = get_current_theme();
    67                         $screenshotIMG = $themes[$current_theme]['Screenshot'];
    68                                                                        
    69                         $urlScreenShot = plugin_dir_url(__FILE__) . 'images/default.png';
    70                        
    71                        
    72                         if( $screenshotIMG != '' )
     65                        $themes = wp_get_theme();
     66                       
     67                        $urlScreenShot = $themes->get_screenshot();
     68                        if( empty($urlScreenShot) )
    7369                        {
    74                             $urlScreenShot = get_bloginfo('template_directory') . '/' . $screenshotIMG;
     70                            $urlScreenShot = plugin_dir_url(__FILE__) . 'images/default.png';
    7571                        }
    7672                    ?>
     
    287283        }
    288284        if (function_exists('add_options_page')) {
    289             add_options_page('Display Template Name', 'Display Template Name', 9, basename(__FILE__), array(&$display_template_name_plugin, 'printAdminPage'));
     285            add_options_page('Display Template Name', 'Display Template Name', 'activate_plugins', basename(__FILE__), array(&$display_template_name_plugin, 'printAdminPage'));
    290286        }
    291287    }   
  • display-template-name/trunk/readme.txt

    r647427 r847740  
    22Tags: developpement, template
    33Requires at least: 3.0.0
    4 Tested up to: 3.5
    5 Stable tag: 1.4
     4Tested up to: 3.8
     5Stable tag: 1.5
    66
    77
     
    2424
    2525== Changelog ==
     26
     27= 1.5 =
     28* Wordpress 3.8 compatibility
    2629
    2730= 1.4 =
Note: See TracChangeset for help on using the changeset viewer.