Skip to content

Commit

Permalink
Improve variable name in wordpress-seo
Browse files Browse the repository at this point in the history
  • Loading branch information
szepeviktor committed Dec 20, 2024
1 parent 45e66a7 commit c9b22a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mu-plugins/wordpress-seo.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ static function ($hook) {
add_filter(
'wpseo_submenu_pages',
static function ($submenuPages) {
$hidePages = [
$premiumPages = [
'wpseo_licenses',
'wpseo_redirects',
'wpseo_workouts',
Expand All @@ -59,7 +59,7 @@ static function ($submenuPages) {
];
foreach ($submenuPages as $pageIndex => $submenuPage) {
// Fifth element is $page_slug
if (in_array($submenuPage[4], $hidePages, true)) {
if (in_array($submenuPage[4], $premiumPages, true)) {
unset($submenuPages[$pageIndex]);
}
}
Expand Down

0 comments on commit c9b22a3

Please sign in to comment.