Skip to content

Commit

Permalink
Merge pull request #3264 from mircobabini/fix/issue-3263
Browse files Browse the repository at this point in the history
Fix potential issue with missing top menu links
  • Loading branch information
dparker1005 authored Jan 21, 2025
2 parents 67581c3 + 37d006b commit e931022
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions includes/adminpages.php
Original file line number Diff line number Diff line change
Expand Up @@ -704,6 +704,10 @@ function pmpro_add_action_links( $links ) {
}
}

if ( empty( $top_menu_page ) ) {
return $links;
}

$new_links = array(
'<a href="' . admin_url( 'admin.php?page=' . $top_menu_page ) . '">Settings</a>',
);
Expand Down

0 comments on commit e931022

Please sign in to comment.