Skip to content

Commit

Permalink
Merge pull request #21976 from apermo/trunk
Browse files Browse the repository at this point in the history
refactor: remove duplicate/redundant condition
  • Loading branch information
leonidasmi authored Jan 22, 2025
2 parents 0031b1b + b1f4194 commit e158b77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/class-wpseo-replace-vars.php
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ private function retrieve_date() {
// Returns a string.
$replacement = get_the_date();
}
elseif ( single_month_title( ' ', false ) && single_month_title( ' ', false ) !== '' ) {
elseif ( single_month_title( ' ', false ) ) {
// Returns a string.
$replacement = single_month_title( ' ', false );
}
Expand Down

0 comments on commit e158b77

Please sign in to comment.