Plugin Directory

Changeset 2062092


Ignore:
Timestamp:
04/03/2019 07:44:12 AM (7 years ago)
Author:
michouse
Message:

Update version2.0.2

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

Legend:

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

    r1934237 r2062092  
    33Tags: plugin, admin bar, tool bar, custom admin bar, custom tool bar
    44Requires at least: 4.0
    5 Tested up to: 4.9.7
    6 Stable tag: 2.0.1
     5Tested up to: 5.1.1
     6Stable tag: 2.0.2
    77Requires PHP: 5.2.4
    88License: GPLv2
     
    2626
    27271. Upload `WP Extend Toolbar` to the `/wp-content/plugins/` directory
    28 1. Activate the plugin
    29 1. Adds a page information to the admin bar.
     282. Activate the plugin
     293. Page information adds to the admin bar.
    3030
    3131
     
    3636
    3737== Changelog ==
     38
     39= 2.0.2 =
     40* Bugfix.
    3841
    3942= 2.0.1 =
  • wp-extend-toolbar/trunk/wp-extend-toolbar.php

    r1919938 r2062092  
    55 Description: Adds a page information to the admin bar.
    66 Author: Michinari Odajima
    7  Version: 2.0.1
     7 Version: 2.0.2
    88 Author URI: https://piece-web.jp/
    99 Domain Path: /language
     
    8181        );
    8282       
    83         $base_url = plugins_url();
    84         $img_url  = $base_url . '/img/btn-close.png';
     83        $img_url  = $this->get_plugins_url('/img/btn-close.png');
    8584       
    8685echo <<<EOM
     
    9190    function enqueue() {
    9291       
    93         wp_enqueue_style( 'wp-extend-toolbar',  plugins_url( "css/wp-extend-toolbar.css", __FILE__ ), array() );
    94         wp_enqueue_script( 'wp-extend-toolbar', plugins_url( "js/wp-extend-toolbar.js", __FILE__ ), array( 'jquery' ), null, true );
     92        wp_enqueue_style( 'wp-extend-toolbar',  $this->get_plugins_url( "/css/wp-extend-toolbar.css" ), array() );
     93        wp_enqueue_script( 'wp-extend-toolbar', $this->get_plugins_url( "/js/wp-extend-toolbar.js" ),  array( 'jquery' ), null, true );
    9594       
    9695    }
    9796
    98     function plugins_url() {
     97    function get_plugins_url( $path = '' ) {
    9998       
    100         return plugins_url( '', __FILE__ );
     99        return plugins_url( $path, __FILE__ );
    101100       
    102101    }
Note: See TracChangeset for help on using the changeset viewer.