[buddypress-trac] [BuddyPress] #2448: Disabling adminbar for logged out users - style tags incorrectly hooked
buddypress-trac at lists.automattic.com
buddypress-trac at lists.automattic.com
Fri Jun 18 11:11:26 UTC 2010
#2448: Disabling adminbar for logged out users - style tags incorrectly hooked
--------------------+-------------------------------------------------------
Reporter: hnla | Owner:
Type: defect | Status: new
Priority: normal | Milestone: 1.2.5
Component: Core | Keywords: adminbar, style tags
--------------------+-------------------------------------------------------
Setting adminbar disabled for logged out views is controlled by adding
display:none; to #wp-admin-bar via style tags, however the action hook is
incorrect as it hooks into 'wp-footer' causing illegal and non valid page
rendering with style tags rendered in the document body tags.
Solution:
In /bp-core/bp-core-cssjs.php ~line 182 change:
add_action( 'wp_footer', 'bp_core_override_adminbar_css' );
To:
add_action( 'wp_head', 'bp_core_override_adminbar_css' );
BP 1.2.4.1 and earlier?
--
Ticket URL: <http://trac.buddypress.org/ticket/2448>
BuddyPress <http://buddypress.org/>
BuddyPress
More information about the buddypress-trac
mailing list