From b1f419449955fd0d00aa14b4a235d621bbad63d0 Mon Sep 17 00:00:00 2001 From: Christoph Daum Date: Sun, 19 Jan 2025 15:02:11 +0100 Subject: [PATCH] refactor: remove duplicate/redundant condition Removed second condition with `single_month_title( ' ', false )` in `WPSEO_Replace_Vars::retrieve_date()` as this did not provide any difference. Refs: https://github.com/Yoast/wordpress-seo/issues/21975 --- inc/class-wpseo-replace-vars.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/class-wpseo-replace-vars.php b/inc/class-wpseo-replace-vars.php index 5dd81d78cdf..4b8ee75496b 100644 --- a/inc/class-wpseo-replace-vars.php +++ b/inc/class-wpseo-replace-vars.php @@ -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 ); }