WordPress.org

Plugin Directory

Changeset 425345


Ignore:
Timestamp:
08/18/11 12:14:56 (3 years ago)
Author:
tott
Message:

Moving style enqueuing to init hook. We don't want to be doing it wrong http://core.trac.wordpress.org/changeset/18556

Location:
debug-bar-extender/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • debug-bar-extender/trunk/debug-bar-extender.php

    r387615 r425345  
    145145            add_filter( 'debug_bar_panels', array( &$this, 'add_var_menu' ) ); 
    146146             
    147         wp_enqueue_style( 'debug-bar-extender', plugins_url( "css/debug-bar-extender.css", __FILE__ ), array('debug-bar'), '20110302' ); 
    148         wp_enqueue_script( 'debug-bar-extender', plugins_url( "js/debug-bar-extender.js", __FILE__ ), array('debug-bar'), '20110302', true ); 
    149  
     147         
     148        add_action( 'init', array( &$this, 'add_design_parts' ) ); 
     149         
    150150        if ( 1 == $this->settings['track_default_vars'] ) { 
    151151            add_action( 'parse_request', array( &$this, 'trace_var_request' ), 1000 ); 
     
    224224    } 
    225225 
     226    /*  
     227     * Enqueue Styles and Scripts 
     228     */ 
     229    public function add_design_parts() { 
     230        wp_enqueue_style( 'debug-bar-extender', plugins_url( "css/debug-bar-extender.css", __FILE__ ), array('debug-bar'), '20110302' ); 
     231        wp_enqueue_script( 'debug-bar-extender', plugins_url( "js/debug-bar-extender.js", __FILE__ ), array('debug-bar'), '20110302', true ); 
     232    } 
     233     
    226234    /* 
    227235     * This function starts a profiling block. Currently you can have only one 
  • debug-bar-extender/trunk/readme.txt

    r387615 r425345  
    44Donate link: http://hitchhackerguide.com 
    55Requires at least: 3.1 
    6 Tested up to: 3.1 
     6Tested up to: 3.2.1 
    77Stable tag: trunk 
    88 
     
    7474== ChangeLog == 
    7575 
     76= Version 0.4 = 
     77 
     78* Moving style enqueuing to init hook. We don't want to be doing it wrong http://core.trac.wordpress.org/changeset/18556 
     79 
    7680= Version 0.3 = 
    7781 
Note: See TracChangeset for help on using the changeset viewer.