Skip to content
This repository was archived by the owner on Mar 7, 2025. It is now read-only.

Commit a556ebe

Browse files
committed
v1.4.5 hot fixes
1 parent 8311e29 commit a556ebe

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

includes/items-edit-content.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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!

includes/plugins/items-login-designer.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@
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
*/
2931
function 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',

includes/plugins/items-seopress.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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 */

0 commit comments

Comments
 (0)