Version Description
- Fixed admin url bug caused when WordPress is installed in a subdirectory.
Download this release
Release Info
Developer | barrykooij |
Plugin | What The File |
Version | 1.1.2 |
Comparing to | |
See all releases |
Code changes from version 1.1.1 to 1.1.2
- readme.txt +10 -4
- what-the-file.php +3 -3
readme.txt
CHANGED
@@ -1,18 +1,21 @@
|
|
1 |
=== What The File ===
|
2 |
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.1
|
7 |
-
Stable tag: 1.1.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
11 |
-
|
12 |
|
13 |
== Description ==
|
14 |
|
15 |
-
|
|
|
|
|
|
|
16 |
|
17 |
== Installation ==
|
18 |
|
@@ -35,6 +38,9 @@ You have to be an Administrator to see the "What The File" option.
|
|
35 |
|
36 |
== Changelog ==
|
37 |
|
|
|
|
|
|
|
38 |
= 1.1.1 =
|
39 |
* Small meta information changes.
|
40 |
|
1 |
=== What The File ===
|
2 |
Contributors: barrykooij
|
3 |
Donate link:
|
4 |
+
Tags: toolbar, development, file, template, template editing, Template Hierarchy, themes
|
5 |
Requires at least: 3.1
|
6 |
Tested up to: 3.5.1
|
7 |
+
Stable tag: 1.1.2
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
11 |
+
What The File adds an option to your toolbar showing you what file is used to display the page you’re on. If you want to you can click the file name to edit it directly through the theme editor, though I don’t recommend this for bigger changes. Since version 1.1.0 What The File also supports Roots Theme based themes.
|
12 |
|
13 |
== Description ==
|
14 |
|
15 |
+
What The File adds an option to your toolbar showing you what file is used to display the page you’re on. If you want to you can click the file name to edit it directly through the theme editor, though I don’t recommend this for bigger changes. Since version 1.1.0 What The File also supports Roots Theme based themes.
|
16 |
+
|
17 |
+
More information can be found <a href='http://www.barrykooij.com/what-the-file/'>here</a>.
|
18 |
+
For support please visit the <a href='http://wordpress.org/support/plugin/what-the-file'>Support forum</a>.
|
19 |
|
20 |
== Installation ==
|
21 |
|
38 |
|
39 |
== Changelog ==
|
40 |
|
41 |
+
= 1.1.2 =
|
42 |
+
* Fixed admin url bug caused when WordPress is installed in a subdirectory.
|
43 |
+
|
44 |
= 1.1.1 =
|
45 |
* Small meta information changes.
|
46 |
|
what-the-file.php
CHANGED
@@ -2,8 +2,8 @@
|
|
2 |
/*
|
3 |
Plugin Name: What The File
|
4 |
Plugin URI: http://www.barrykooij.com/what-the-file/
|
5 |
-
Description:
|
6 |
-
Version: 1.1.
|
7 |
Author: Barry Kooij
|
8 |
Author URI: http://www.barrykooij.com/
|
9 |
*/
|
@@ -46,7 +46,7 @@ class WhatTheFile
|
|
46 |
public function admin_bar_menu() {
|
47 |
global $wp_admin_bar;
|
48 |
$wp_admin_bar->add_menu( array( 'id' => 'wtf-bar', 'parent' => 'top-secondary', 'title' => __('What The File', 'what-the-file'), 'href' => FALSE ) );
|
49 |
-
$wp_admin_bar->add_menu( array( 'id' => 'wtf-bar-sub', 'parent' => 'wtf-bar', 'title' => $this->get_current_page(), 'href' => '
|
50 |
}
|
51 |
|
52 |
public function print_css()
|
2 |
/*
|
3 |
Plugin Name: What The File
|
4 |
Plugin URI: http://www.barrykooij.com/what-the-file/
|
5 |
+
Description: What The File adds an option to your toolbar showing you what file is used to display the page you’re on. If you want to you can click the file name to edit it directly through the theme editor, though I don’t recommend this for bigger changes. Since version 1.1.0 What The File also supports Roots Theme based themes.
|
6 |
+
Version: 1.1.2
|
7 |
Author: Barry Kooij
|
8 |
Author URI: http://www.barrykooij.com/
|
9 |
*/
|
46 |
public function admin_bar_menu() {
|
47 |
global $wp_admin_bar;
|
48 |
$wp_admin_bar->add_menu( array( 'id' => 'wtf-bar', 'parent' => 'top-secondary', 'title' => __('What The File', 'what-the-file'), 'href' => FALSE ) );
|
49 |
+
$wp_admin_bar->add_menu( array( 'id' => 'wtf-bar-sub', 'parent' => 'wtf-bar', 'title' => $this->get_current_page(), 'href' => get_admin_url().'theme-editor.php?file='.$this->get_current_page().'&theme='.get_template() ) );
|
50 |
}
|
51 |
|
52 |
public function print_css()
|