Version Description
- Fix the JavaScript error reported by @flexer. Special thanks to @dmchale for the fix!
Download this release
Release Info
Developer | tai |
Plugin | Show Current Template |
Version | 0.4.3 |
Comparing to | |
See all releases |
Code changes from version 0.4.2 to 0.4.3
- assets/js/replace.js +3 -1
- readme.txt +16 -1
- show-current-template.php +3 -3
assets/js/replace.js
CHANGED
@@ -2,4 +2,6 @@ function replaceFileNames() {
|
|
2 |
let c = document.getElementById('included-files-fie-on-wp-footer').innerHTML;
|
3 |
document.getElementById('included-files-list').innerHTML = c;
|
4 |
}
|
5 |
-
|
|
|
|
2 |
let c = document.getElementById('included-files-fie-on-wp-footer').innerHTML;
|
3 |
document.getElementById('included-files-list').innerHTML = c;
|
4 |
}
|
5 |
+
jQuery( function() {
|
6 |
+
replaceFileNames();
|
7 |
+
});
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://wp.tekapo.com/is-my-plugin-useful/
|
|
4 |
Tags: template, toolbar
|
5 |
Requires at least: 3.5
|
6 |
Tested up to: 5.6
|
7 |
-
Stable tag: 0.4.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -40,6 +40,18 @@ You can find your profile page is in your WordPress admin -> Users -> Profile.
|
|
40 |
= I don't see the current template file name in the toolbar. =
|
41 |
Do you logged in as "Administrator"? Other role users like "Editor" can't see the file name.
|
42 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
43 |
== Screenshots ==
|
44 |
|
45 |
1. Shows the current template file.
|
@@ -50,6 +62,9 @@ None so far.
|
|
50 |
|
51 |
== Changelog ==
|
52 |
|
|
|
|
|
|
|
53 |
= 0.4.2 =
|
54 |
* Fix showing included files at bottom when the logged in user's roles other than admin.
|
55 |
|
4 |
Tags: template, toolbar
|
5 |
Requires at least: 3.5
|
6 |
Tested up to: 5.6
|
7 |
+
Stable tag: 0.4.3
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
40 |
= I don't see the current template file name in the toolbar. =
|
41 |
Do you logged in as "Administrator"? Other role users like "Editor" can't see the file name.
|
42 |
|
43 |
+
= I'dont think this plugin is working properly.
|
44 |
+
|
45 |
+
Please try below:
|
46 |
+
|
47 |
+
* Activate one of the default themes.
|
48 |
+
|
49 |
+
Now the plugin work properly? Then it means there may be a compatibility issue between your theme and this plugin, so let me know your theme’s name and where I can get it.
|
50 |
+
|
51 |
+
* Try to stop all plugins other than this plugin.
|
52 |
+
|
53 |
+
Now the plugin work properly? Then it means there may be a compatibility issue between one of those other plugins and this plugin, so let me know those plugins names and where I can get them.
|
54 |
+
|
55 |
== Screenshots ==
|
56 |
|
57 |
1. Shows the current template file.
|
62 |
|
63 |
== Changelog ==
|
64 |
|
65 |
+
= 0.4.3 =
|
66 |
+
* Fix the JavaScript error reported by @flexer. Special thanks to @dmchale for the fix!
|
67 |
+
|
68 |
= 0.4.2 =
|
69 |
* Fix showing included files at bottom when the logged in user's roles other than admin.
|
70 |
|
show-current-template.php
CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Show Current Template
|
|
4 |
Plugin URI: https://wp.tekapo.com/
|
5 |
Description: Show the current template file name in the tool bar. <a href="https://wp.tekapo.com/is-my-plugin-useful/">Is this useful for you?</a>
|
6 |
Author: JOTAKI Taisuke
|
7 |
-
Version: 0.4.
|
8 |
Author URI: https://tekapo.com/
|
9 |
Text Domain: show-current-template
|
10 |
Domain Path: /languages/
|
@@ -30,7 +30,7 @@ along with this program; if not, write to the Free Software
|
|
30 |
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
31 |
* */
|
32 |
|
33 |
-
define( 'WPSCT_VERSION', '0.4.
|
34 |
|
35 |
load_plugin_textdomain( 'show-current-template', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
|
36 |
|
@@ -184,7 +184,7 @@ class Show_Template_File_Name {
|
|
184 |
|
185 |
if ( $wp_version >= '5.4' ) {
|
186 |
$js_path = plugins_url( 'assets/js/replace.js', __FILE__ );
|
187 |
-
wp_register_script( 'current-template-js', $js_path, array(),
|
188 |
wp_enqueue_script( 'current-template-js' );
|
189 |
} else {
|
190 |
return;
|
4 |
Plugin URI: https://wp.tekapo.com/
|
5 |
Description: Show the current template file name in the tool bar. <a href="https://wp.tekapo.com/is-my-plugin-useful/">Is this useful for you?</a>
|
6 |
Author: JOTAKI Taisuke
|
7 |
+
Version: 0.4.3
|
8 |
Author URI: https://tekapo.com/
|
9 |
Text Domain: show-current-template
|
10 |
Domain Path: /languages/
|
30 |
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
31 |
* */
|
32 |
|
33 |
+
define( 'WPSCT_VERSION', '0.4.3' );
|
34 |
|
35 |
load_plugin_textdomain( 'show-current-template', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
|
36 |
|
184 |
|
185 |
if ( $wp_version >= '5.4' ) {
|
186 |
$js_path = plugins_url( 'assets/js/replace.js', __FILE__ );
|
187 |
+
wp_register_script( 'current-template-js', $js_path, array( 'jquery' ), WPSCT_VERSION, true );
|
188 |
wp_enqueue_script( 'current-template-js' );
|
189 |
} else {
|
190 |
return;
|