Plugin Directory

Changeset 1208862


Ignore:
Timestamp:
07/29/2015 09:41:21 AM (11 years ago)
Author:
michouse
Message:

Version 1.1.0 Update

Location:
wp-extend-toolbar/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • wp-extend-toolbar/trunk/readme.txt

    r1203727 r1208862  
    44Requires at least: 4.0
    55Tested up to: 4.2.2
    6 Stable tag: 1.0.0
     6Stable tag: 1.1.0
    77License: GPLv2
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    4040== Changelog ==
    4141
     42= 1.1.0 =
     43* Enable only Administrator.
     44
    4245= 1.0.0 =
    4346* Display "Template" to the admin bar.
  • wp-extend-toolbar/trunk/wp-extend-toolbar.php

    r1203652 r1208862  
    55 Description: Adds a page information to the admin bar.
    66 Author: Michinari Odajima
    7  Version: 1.0.0
     7 Version: 1.1.0
    88 Author URI: http://piece-web.jp/
    99 Domain Path: /language
     
    1515    function WP_Extend_Toolbar() {
    1616       
     17        add_theme_support( 'admin-bar', array( 'callback' => '__return_false' ) );
    1718        add_action( 'admin_bar_init', array( $this, 'admin_bar_init' ) );
    1819       
     
    2122    function admin_bar_init() {
    2223
    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           
    2526            add_action( 'admin_bar_menu', array( $this, 'admin_bar_menu' ), 100 );
    26            
    2727            add_action( 'wp_enqueue_scripts', array( $this, 'enqueue' ), 100 );
    2828       
     
    7171    function enqueue() {
    7272       
    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 );
    7675       
    7776    }
Note: See TracChangeset for help on using the changeset viewer.