WordPress.org

Make WordPress Core


Ignore:
Timestamp:
10/28/2010 08:31:36 AM (9 years ago)
Author:
westi
Message:

Admin bar cleanup. See #14772 props filosofo.
Moves CSS into seperate files.
Patch cleanup included moving function call arguments back on to one line where not necessary to split them.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/admin-bar/admin-bar-debug.php

    r15671 r16038  
    1212    global $wp_admin_bar, $wpdb;
    1313
    14     if ( !is_super_admin() || !apply_filters('wp_admin_bar_enable_debug_menu', false) )
     14    if ( ! is_super_admin() || ! apply_filters('wp_admin_bar_enable_debug_menu', false ) )
    1515        return;
    1616
     
    4545    <script type="text/javascript">
    4646    /* <![CDATA[ */
     47    var toggle_query_list = function() {
     48        var querylist = document.getElementById( 'querylist' );
     49        if( querylist && querylist.style.display == 'block' ) {
     50            querylist.style.display='none';
     51        } else {
     52            querylist.style.display='block';
     53        }
     54    }
     55
    4756    var clickDebugLink = function( targetsGroupId, obj) {
    4857        var sectionDivs = document.getElementById( targetsGroupId ).childNodes;
Note: See TracChangeset for help on using the changeset viewer.