What The File - Version 1.0.2

Version Description

  • Fixed incorrect url when theme directory name differs from theme name.
Download this release

Release Info

Developer barrykooij
Plugin Icon 128x128 What The File
Version 1.0.2
Comparing to
See all releases

Code changes from version 1.0.1 to 1.0.2

Files changed (2) hide show
  1. readme.txt +9 -3
  2. what-the-file.php +2 -2
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: barrykooij
3
  Donate link:
4
  Tags: toolbar, development, file, template, template editing
5
  Requires at least: 3.1
6
- Tested up to: 3.4
7
- Stable tag: 1.0.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -35,8 +35,14 @@ You have to be an Administrator to see the "What The File" option.
35
 
36
  == Changelog ==
37
 
 
 
 
38
  = 1.0.1 =
39
  * Changed the way the plugin initializes.
40
  * Moved CSS from file to inline CSS.
41
 
42
- == Upgrade notice ==
 
 
 
3
  Donate link:
4
  Tags: toolbar, development, file, template, template editing
5
  Requires at least: 3.1
6
+ Tested up to: 3.4.2
7
+ Stable tag: 1.0.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
35
 
36
  == Changelog ==
37
 
38
+ = 1.0.2 =
39
+ * Fixed incorrect url when theme directory name differs from theme name.
40
+
41
  = 1.0.1 =
42
  * Changed the way the plugin initializes.
43
  * Moved CSS from file to inline CSS.
44
 
45
+ == Upgrade notice ==
46
+
47
+ = 1.0.2 =
48
+ Fixed incorrect url when theme directory name differs from theme name.
what-the-file.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: What The File
4
  Plugin URI: http://www.cageworks.nl/what-the-file/
5
  Description: Find out what template file (PHP) is used on the current page. What The File will be visible in the Toolbar when viewing your website.
6
- Version: 1.0.1
7
  Author: Barry Kooij
8
  Author URI: http://www.barrykooij.nl/
9
  */
@@ -40,7 +40,7 @@ class WhatTheFile
40
  public function admin_bar_menu() {
41
  global $wp_admin_bar;
42
  $wp_admin_bar->add_menu( array( 'id' => 'wtf-bar', 'parent' => 'top-secondary', 'title' => __('What The File', 'what-the-file'), 'href' => FALSE ) );
43
- $wp_admin_bar->add_menu( array( 'id' => 'wtf-bar-sub', 'parent' => 'wtf-bar', 'title' => $this->get_current_page(), 'href' => '/wp-admin/theme-editor.php?file='.$this->get_current_page().'&theme='.strtolower(wp_get_theme()) ) );
44
  }
45
 
46
  public function print_css()
3
  Plugin Name: What The File
4
  Plugin URI: http://www.cageworks.nl/what-the-file/
5
  Description: Find out what template file (PHP) is used on the current page. What The File will be visible in the Toolbar when viewing your website.
6
+ Version: 1.0.2
7
  Author: Barry Kooij
8
  Author URI: http://www.barrykooij.nl/
9
  */
40
  public function admin_bar_menu() {
41
  global $wp_admin_bar;
42
  $wp_admin_bar->add_menu( array( 'id' => 'wtf-bar', 'parent' => 'top-secondary', 'title' => __('What The File', 'what-the-file'), 'href' => FALSE ) );
43
+ $wp_admin_bar->add_menu( array( 'id' => 'wtf-bar-sub', 'parent' => 'wtf-bar', 'title' => $this->get_current_page(), 'href' => '/wp-admin/theme-editor.php?file='.$this->get_current_page().'&theme='.get_template() ) );
44
  }
45
 
46
  public function print_css()