Changeset 1208862
- Timestamp:
- 07/29/2015 09:41:21 AM (11 years ago)
- Location:
- wp-extend-toolbar/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (2 diffs)
-
wp-extend-toolbar.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-extend-toolbar/trunk/readme.txt
r1203727 r1208862 4 4 Requires at least: 4.0 5 5 Tested up to: 4.2.2 6 Stable tag: 1. 0.06 Stable tag: 1.1.0 7 7 License: GPLv2 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 40 40 == Changelog == 41 41 42 = 1.1.0 = 43 * Enable only Administrator. 44 42 45 = 1.0.0 = 43 46 * Display "Template" to the admin bar. -
wp-extend-toolbar/trunk/wp-extend-toolbar.php
r1203652 r1208862 5 5 Description: Adds a page information to the admin bar. 6 6 Author: Michinari Odajima 7 Version: 1. 0.07 Version: 1.1.0 8 8 Author URI: http://piece-web.jp/ 9 9 Domain Path: /language … … 15 15 function WP_Extend_Toolbar() { 16 16 17 add_theme_support( 'admin-bar', array( 'callback' => '__return_false' ) ); 17 18 add_action( 'admin_bar_init', array( $this, 'admin_bar_init' ) ); 18 19 … … 21 22 function admin_bar_init() { 22 23 23 if ( ! is_admin() && is_admin_bar_showing() && is_user_logged_in() ) {24 24 if ( ! is_admin() && is_admin_bar_showing() && is_user_logged_in() && current_user_can('edit_user') ) { 25 25 26 add_action( 'admin_bar_menu', array( $this, 'admin_bar_menu' ), 100 ); 26 27 27 add_action( 'wp_enqueue_scripts', array( $this, 'enqueue' ), 100 ); 28 28 … … 71 71 function enqueue() { 72 72 73 wp_enqueue_style( 'wp-extend-toolbar', plugins_url( "css/wp-extend-toolbar.css", __FILE__ ), array(), '0.1.0' ); 74 75 wp_enqueue_script( 'wp-extend-toolbar', plugins_url( "js/wp-extend-toolbar.js", __FILE__ ), array( 'jquery' ), '0.1.0', true ); 73 wp_enqueue_style( 'wp-extend-toolbar', plugins_url( "css/wp-extend-toolbar.css", __FILE__ ), array(), '1.1.0' ); 74 wp_enqueue_script( 'wp-extend-toolbar', plugins_url( "js/wp-extend-toolbar.js", __FILE__ ), array( 'jquery' ), '1.1.0', true ); 76 75 77 76 }
Note: See TracChangeset
for help on using the changeset viewer.