Skip to content

Commit

Permalink
refactor: remove duplicate/redundant condition
Browse files Browse the repository at this point in the history
Removed second condition with `single_month_title( ' ', false )` in `WPSEO_Replace_Vars::retrieve_date()` as this did not provide any difference.

Refs: #21975
  • Loading branch information
apermo authored Jan 19, 2025
1 parent f7f95dc commit b1f4194
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 b1f4194

Please sign in to comment.