Skip to content

Commit

Permalink
fix: adding classes in MenuItem (#2905)
Browse files Browse the repository at this point in the history
  • Loading branch information
romainmenke committed Feb 22, 2024
1 parent e6a8957 commit 7e00eeb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MenuItem.php
Expand Up @@ -180,7 +180,7 @@ public function wp_object(): ?WP_Post
public function add_class(string $class_name)
{
// Class name is already there
if (!\in_array($class_name, $this->classes, true)) {
if (\in_array($class_name, $this->classes, true)) {
return;
}
$this->classes[] = $class_name;
Expand Down

0 comments on commit 7e00eeb

Please sign in to comment.