What The File - Version 1.1.0

Version Description

  • Added Roots Theme support.
  • Added WordPress 3.5.1 support.
  • Meta information changed.
Download this release

Release Info

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

Code changes from version 1.0.3 to 1.1.0

Files changed (2) hide show
  1. readme.txt +7 -2
  2. what-the-file.php +8 -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.5
7
- Stable tag: 1.0.3
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -35,6 +35,11 @@ You have to be an Administrator to see the "What The File" option.
35
 
36
  == Changelog ==
37
 
 
 
 
 
 
38
  = 1.0.3 =
39
  * Added WordPress 3.5 support.
40
  * Small meta information changes.
3
  Donate link:
4
  Tags: toolbar, development, file, template, template editing
5
  Requires at least: 3.1
6
+ Tested up to: 3.5.1
7
+ Stable tag: 1.1.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
35
 
36
  == Changelog ==
37
 
38
+ = 1.1.0 =
39
+ * Added Roots Theme support.
40
+ * Added WordPress 3.5.1 support.
41
+ * Meta information changed.
42
+
43
  = 1.0.3 =
44
  * Added WordPress 3.5 support.
45
  * Small meta information changes.
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.3
7
  Author: Barry Kooij
8
  Author URI: http://www.barrykooij.nl/
9
  */
@@ -33,7 +33,13 @@ class WhatTheFile
33
 
34
  public function save_current_page($template_name)
35
  {
36
- $this->template_name = basename($template_name);
 
 
 
 
 
 
37
  return $template_name;
38
  }
39
 
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.1.0
7
  Author: Barry Kooij
8
  Author URI: http://www.barrykooij.nl/
9
  */
33
 
34
  public function save_current_page($template_name)
35
  {
36
+ $this->template_name = basename($template_name);
37
+
38
+ // Do Roots Theme check
39
+ if(function_exists('roots_template_path')) {
40
+ $this->template_name = basename(roots_template_path());
41
+ }
42
+
43
  return $template_name;
44
  }
45