WordPress.org

Plugin Directory

Changeset 618443


Ignore:
Timestamp:
10/29/12 00:44:54 (18 months ago)
Author:
jblz
Message:

Jetpack Notifications: Show the notes menu if the module is enbled and another plugin or modification has enabled the toolbar for logged out users like so:
add_filter( 'show_admin_bar', 'return_true' );

File:
1 edited

Legend:

Unmodified
Added
Removed
  • jetpack/branches/1.9/modules/notes.php

    r617154 r618443  
    7171 
    7272    function action_init() { 
    73         if ( !is_user_logged_in() ) 
     73        if ( !has_filter( 'show_admin_bar', '__return_true' ) && !is_user_logged_in() ) 
    7474            return; 
    7575        wp_enqueue_style( 'notes-admin-bar-rest', $this->wpcom_static_url( '/wp-content/mu-plugins/notes/admin-bar-rest.css' ), array(), JETPACK_NOTES__CACHE_BUSTER ); 
Note: See TracChangeset for help on using the changeset viewer.