Skip to content

Commit

Permalink
Logic fix for adminbar links
Browse files Browse the repository at this point in the history
  • Loading branch information
Guy Primavera committed Oct 3, 2020
1 parent 2395f6e commit 945cceb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions admin/adminBar/adminBarLinks.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php if ( __FILE__ == $_SERVER['SCRIPT_FILENAME'] ) { exit; }

// Admin Bar links
if ( ! isset( $GLOBALS['aquilaShowAdminbarLinks'] ) || !$GLOBALS['aquilaShowAdminbarLinks'] ) {
if ( ! isset( $GLOBALS['aquilaShowAdminbarLinks'] ) || !) {
add_action( 'admin_bar_menu', 'aquila_admin_bar_cleanup', 200 );
function aquila_admin_bar_cleanup()
{
Expand Down Expand Up @@ -35,7 +35,7 @@ function aquila_remove_wp_logo_nodes() {
}

// Add Aquila links
if (isset($GLOBALS['aquilaHideLogoMenu']) && !$GLOBALS['aquilaHideLogoMenu']) {
if ( !isset($GLOBALS['aquilaHideLogoMenu']) || !$GLOBALS['aquilaHideLogoMenu']) {
add_action('admin_bar_menu', 'aquila_wp_logo_links', 100);
}
function aquila_wp_logo_links($admin_bar){
Expand Down

0 comments on commit 945cceb

Please sign in to comment.