Skip to:
Content

Changeset 6724


Ignore:
Timestamp:
01/17/13 19:22:51 (15 months ago)
Author:
r-a-y
Message:

Fix 'Show the Toolbar for logged out users' setting.

bp_core_load_admin_bar() uses the show_admin_bar() function; this
function toggles the WP toolbar visibiility.

WP recommends to use show_admin_bar() on 'plugins_loaded':
https://codex.wordpress.org/Function_Reference/show_admin_bar#Notes

Therefore, this commit changes when bp_core_load_admin_bar() runs
from 'bp_init' to 'bp_loaded'.

Fixes #4771.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core/bp-core-actions.php

    r6669 r6724  
    5454add_action( 'bp_loaded', 'bp_include',                  4  ); 
    5555add_action( 'bp_loaded', 'bp_setup_widgets',            6  ); 
     56add_action( 'bp_loaded', 'bp_core_load_admin_bar',      10 ); 
    5657add_action( 'bp_loaded', 'bp_register_theme_packages',  12 ); 
    5758add_action( 'bp_loaded', 'bp_register_theme_directory', 14 ); 
     
    6869add_action( 'bp_init', 'bp_setup_nav',             6  ); 
    6970add_action( 'bp_init', 'bp_setup_title',           8  ); 
    70 add_action( 'bp_init', 'bp_core_load_admin_bar',   10 ); 
    7171 
    7272/** 
Note: See TracChangeset for help on using the changeset viewer.