Changeset 1808453
- Timestamp:
- 01/24/2018 10:25:22 AM (8 years ago)
- Location:
- am-wp-which-template/trunk
- Files:
-
- 2 edited
-
am-wp-which-template.php (modified) (1 diff)
-
readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
am-wp-which-template/trunk/am-wp-which-template.php
r1582853 r1808453 11 11 */ 12 12 13 14 13 function amwpwt_admin_bar_init() { 15 14 // If not an admin or if admin bar isn't showing, do nothing 16 if ( !is_super_admin() || !is_admin_bar_showing() )15 if ( ! is_super_admin() || ! is_admin_bar_showing() ) { 17 16 return; 18 19 add_action('admin_bar_menu', 'amwpwt_admin_bar_links', 500); 17 } 18 19 add_action( 'admin_bar_menu', 'amwpwt_admin_bar_links', 500 ); 20 20 } 21 21 22 add_action( 'admin_bar_init', 'amwpwt_admin_bar_init');22 add_action( 'admin_bar_init', 'amwpwt_admin_bar_init' ); 23 23 24 24 function amwpwt_admin_bar_links() { 25 25 global $wp_admin_bar, $template; 26 26 27 27 // clean up path 28 $url = content_url();29 $template_name = substr( $template, ( strpos( $template , $url) ) );28 $url = content_url(); 29 $template_name = substr( $template, ( strpos( $template, $url ) ) ); 30 30 31 31 // Add as a parent menu 32 32 $wp_admin_bar->add_menu( array( 33 33 'title' => $template_name, 34 'href' => false,35 'id' => 'amwpwt_links',36 'href' => false37 ) );34 'href' => false, 35 'id' => 'amwpwt_links', 36 'href' => false 37 ) ); 38 38 } -
am-wp-which-template/trunk/readme.txt
r1604740 r1808453 1 1 === WP Template Name === 2 2 3 Plugin Name: W P Template Name3 Plugin Name: WordPress Which Template 4 4 Plugin URI: http://afzalmultani.com/ 5 5 Author: Afzal Multani … … 8 8 Tags: which file, file, what file, template, which template, debug 9 9 Requires at least: 4.6 10 Tested up to: 4. 710 Tested up to: 4.9.2 11 11 License: GPLv2 or later 12 12 13 13 14 This is a debugging plugin that displays the current php file that is loading on the front end of the website .14 This is a debugging plugin that displays the current php file that is loading on the front end of the website WordPress header. 15 15 16 16 == Description == … … 28 28 = 1.0.0 29 29 * This is the first version 30 * Compatibility check
Note: See TracChangeset
for help on using the changeset viewer.