This repository was archived by the owner on Mar 7, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +6
-4
lines changed
Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -124,7 +124,7 @@ function ddw_tbex_items_view_archives( $wp_admin_bar ) {
124124 $ post_type_object ->labels ->name
125125 );
126126
127- /** Tweak Toolbar node */
127+ /** Tweak Toolbar node --> needs GLOBAL here! */
128128 $ GLOBALS [ 'wp_admin_bar ' ]->add_node (
129129 array (
130130 'id ' => 'archive ' , // same as original!
Original file line number Diff line number Diff line change 2424 * @uses ddw_tbex_item_title_with_icon()
2525 * @uses ddw_tbex_customizer_focus()
2626 *
27+ * @global mixed $GLOBALS[ 'wp_admin_bar' ]
28+ *
2729 * @param object $admin_bar Object of Toolbar nodes.
2830 */
2931function ddw_tbex_site_items_login_designer ( $ admin_bar ) {
@@ -37,7 +39,7 @@ function ddw_tbex_site_items_login_designer( $admin_bar ) {
3739 $ title = esc_attr__ ( 'Login Designer ' , 'toolbar-extras ' );
3840
3941 /** For: Active Theme Group */
40- $ admin_bar ->add_node (
42+ $ GLOBALS [ ' wp_admin_bar ' ] ->add_node (
4143 array (
4244 'id ' => 'rtabor-logindesigner ' ,
4345 'parent ' => 'group-active-theme ' ,
@@ -51,7 +53,7 @@ function ddw_tbex_site_items_login_designer( $admin_bar ) {
5153 );
5254
5355 /** For: Front Customizer */
54- $ admin_bar ->add_node (
56+ $ GLOBALS [ ' wp_admin_bar ' ] ->add_node (
5557 array (
5658 'id ' => 'my-sub-item ' , // same as original
5759 'parent ' => 'customize ' ,
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ function ddw_tbex_site_items_rehook_seopress( $wp_admin_bar ) {
4949
5050 /** Bail early if SEOPress tweak should NOT be used */
5151 if ( ! ddw_tbex_use_tweak_seopress () ) {
52- return ;
52+ return $ wp_admin_bar ;
5353 }
5454
5555 /** Re-hook for: Site Group */
You can’t perform that action at this time.
0 commit comments