Show Current Template - Version 0.4.4-beta

Version Description

None so far.

Download this release

Release Info

Developer tai
Plugin Icon Show Current Template
Version 0.4.4-beta
Comparing to
See all releases

Code changes from version 0.4.4-alpha to 0.4.4-beta

Files changed (1) hide show
  1. show-current-template.php +4 -4
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-alpha
8
  Author URI: https://tekapo.com/
9
  Text Domain: show-current-template
10
  Domain Path: /languages/
@@ -156,7 +156,7 @@ class Show_Template_File_Name {
156
  sort( $included_files );
157
  $included_files_list = '';
158
  foreach ( $included_files as $filename ) {
159
- if ( strstr( $filename, 'themes/' ) ) {
160
  $filepath = strstr( $filename, 'themes' );
161
  if ( $template_relative_path === $filepath ) {
162
  $included_files_list .= '';
@@ -186,8 +186,8 @@ class Show_Template_File_Name {
186
 
187
  echo $this->debug_info[1];
188
  echo $this->debug_info[2];
189
- // echo wp_kses_post( $included_files_html );
190
- echo $included_files_html;
191
  }
192
 
193
  public function add_current_template_stylesheet() {
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-beta
8
  Author URI: https://tekapo.com/
9
  Text Domain: show-current-template
10
  Domain Path: /languages/
156
  sort( $included_files );
157
  $included_files_list = '';
158
  foreach ( $included_files as $filename ) {
159
+ if ( strstr( $filename, 'themes' . DIRECTORY_SEPARATOR ) ) {
160
  $filepath = strstr( $filename, 'themes' );
161
  if ( $template_relative_path === $filepath ) {
162
  $included_files_list .= '';
186
 
187
  echo $this->debug_info[1];
188
  echo $this->debug_info[2];
189
+ echo wp_kses_post( $included_files_html );
190
+ // echo $included_files_html;
191
  }
192
 
193
  public function add_current_template_stylesheet() {