Plugin Directory

Changeset 1980945

Timestamp:
11/27/2018 12:26:22 AM (6 years ago)
Author:
westi
Message:

debug-bar: Move where we add ourselves to happen after Jetpack has maybe reworked the admin bar so we still appear even if the WordPress.com toolbar is being used.

File:
1 edited

Legend:

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

    r1657684 r1980945  
    4040        load_plugin_textdomain( 'debug-bar' );
    4141
    42         add_action( 'admin_bar_menu',   array( $this, 'admin_bar_menu' ), 1000 );
    43         add_action( 'admin_footer',     array( $this, 'render' ), 1000 );
    44         add_action( 'wp_footer',        array( $this, 'render' ), 1000 );
    45         add_action( 'wp_head',          array( $this, 'ensure_ajaxurl' ), 1 );
    46         add_filter( 'body_class',       array( $this, 'body_class' ) );
     42        add_action( '000 );
     43        add_action( 'admin_footer',     array( $this, 'render' ), 1000 );
     44        add_action( 'wp_footer',        array( $this, 'render' ), 1000 );
     45        add_action( 'wp_head',          array( $this, 'ensure_ajaxurl' ), 1 );
     46        add_filter( 'body_class',       array( $this, 'body_class' ) );
    4747        add_filter( 'admin_body_class', array( $this, 'body_class' ) );
    4848
     
    151151    }
    152152
    153     function admin_bar_menu() {
     153    function () {
    154154        global $wp_admin_bar;
    155155
Note: See TracChangeset for help on using the changeset viewer.