Show Current Template - Version 0.4.5

Version Description

  • Fix showing included files at bottom when your WordPress site is multisite and you are a normal admin (not super admin). Special thanks to @dmchale for reporting the issue!
Download this release

Release Info

Developer tai
Plugin Icon Show Current Template
Version 0.4.5
Comparing to
See all releases

Code changes from version 0.4.4 to 0.4.5

Files changed (2) hide show
  1. readme.txt +6 -3
  2. show-current-template.php +3 -3
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.7
7
- Stable tag: 0.4.4
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -38,7 +38,7 @@ Is the Toolbar (Show Toolbar when viewing site) option in your profile page is c
38
  You can find your profile page is in your WordPress admin -> Users -> Profile.
39
 
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
 
@@ -62,8 +62,11 @@ None so far.
62
 
63
  == Changelog ==
64
 
 
 
 
65
  = 0.4.4 =
66
- * Fix not showing included files on Windows local. Special thanks to @lindt01 for helping me identify the cause.
67
 
68
  = 0.4.3 =
69
  * Fix the JavaScript error reported by @flexer. Special thanks to @dmchale for the fix!
4
  Tags: template, toolbar
5
  Requires at least: 3.5
6
  Tested up to: 5.7
7
+ Stable tag: 0.4.5
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
38
  You can find your profile page is in your WordPress admin -> Users -> Profile.
39
 
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. If your WordPress is multisite, only super admin can see the file name.
42
 
43
  = I'dont think this plugin is working properly.
44
 
62
 
63
  == Changelog ==
64
 
65
+ = 0.4.5 =
66
+ * Fix showing included files at bottom when your WordPress site is multisite and you are a normal admin (not super admin). Special thanks to @dmchale for reporting the issue!
67
+
68
  = 0.4.4 =
69
+ * Fix not showing included files on Windows local. Special thanks to @lindt01 for helping me identify the cause!
70
 
71
  = 0.4.3 =
72
  * Fix the JavaScript error reported by @flexer. Special thanks to @dmchale for the fix!
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.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.4' );
34
 
35
  load_plugin_textdomain( 'show-current-template', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
36
 
@@ -144,7 +144,7 @@ class Show_Template_File_Name {
144
 
145
  public function get_included_files_at_footr() {
146
 
147
- if ( ! is_user_logged_in() || ! current_user_can( 'administrator' ) ) {
148
  return;
149
  }
150
 
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.5
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.5' );
34
 
35
  load_plugin_textdomain( 'show-current-template', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
36
 
144
 
145
  public function get_included_files_at_footr() {
146
 
147
+ if ( is_admin() || ! is_super_admin() ) {
148
  return;
149
  }
150