Skip to content

Commit

Permalink
v1.4.5 hot fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
deckerweb committed Aug 12, 2019
1 parent 8311e29 commit a556ebe
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion includes/items-edit-content.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ function ddw_tbex_items_view_archives( $wp_admin_bar ) {
$post_type_object->labels->name
);

/** Tweak Toolbar node */
/** Tweak Toolbar node --> needs GLOBAL here! */
$GLOBALS[ 'wp_admin_bar' ]->add_node(
array(
'id' => 'archive', // same as original!
Expand Down
6 changes: 4 additions & 2 deletions includes/plugins/items-login-designer.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
* @uses ddw_tbex_item_title_with_icon()
* @uses ddw_tbex_customizer_focus()
*
* @global mixed $GLOBALS[ 'wp_admin_bar' ]
*
* @param object $admin_bar Object of Toolbar nodes.
*/
function ddw_tbex_site_items_login_designer( $admin_bar ) {
Expand All @@ -37,7 +39,7 @@ function ddw_tbex_site_items_login_designer( $admin_bar ) {
$title = esc_attr__( 'Login Designer', 'toolbar-extras' );

/** For: Active Theme Group */
$admin_bar->add_node(
$GLOBALS[ 'wp_admin_bar' ]->add_node(
array(
'id' => 'rtabor-logindesigner',
'parent' => 'group-active-theme',
Expand All @@ -51,7 +53,7 @@ function ddw_tbex_site_items_login_designer( $admin_bar ) {
);

/** For: Front Customizer */
$admin_bar->add_node(
$GLOBALS[ 'wp_admin_bar' ]->add_node(
array(
'id' => 'my-sub-item', // same as original
'parent' => 'customize',
Expand Down
2 changes: 1 addition & 1 deletion includes/plugins/items-seopress.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ function ddw_tbex_site_items_rehook_seopress( $wp_admin_bar ) {

/** Bail early if SEOPress tweak should NOT be used */
if ( ! ddw_tbex_use_tweak_seopress() ) {
return;
return $wp_admin_bar;
}

/** Re-hook for: Site Group */
Expand Down

0 comments on commit a556ebe

Please sign in to comment.