summaryrefslogtreecommitdiffstats
path: root/wp-includes/blocks/calendar.php
diff options
context:
space:
mode:
Diffstat (limited to 'wp-includes/blocks/calendar.php')
-rw-r--r--wp-includes/blocks/calendar.php8
1 files changed, 2 insertions, 6 deletions
diff --git a/wp-includes/blocks/calendar.php b/wp-includes/blocks/calendar.php
index f1f7967..04b8889 100644
--- a/wp-includes/blocks/calendar.php
+++ b/wp-includes/blocks/calendar.php
@@ -33,10 +33,8 @@ function render_block_core_calendar( $attributes ) {
str_contains( $permalink_structure, '%monthnum%' ) &&
str_contains( $permalink_structure, '%year%' )
) {
- // phpcs:ignore WordPress.WP.GlobalVariablesOverride.OverrideProhibited
$monthnum = $attributes['month'];
- // phpcs:ignore WordPress.WP.GlobalVariablesOverride.OverrideProhibited
- $year = $attributes['year'];
+ $year = $attributes['year'];
}
}
@@ -70,10 +68,8 @@ function render_block_core_calendar( $attributes ) {
$calendar
);
- // phpcs:ignore WordPress.WP.GlobalVariablesOverride.OverrideProhibited
$monthnum = $previous_monthnum;
- // phpcs:ignore WordPress.WP.GlobalVariablesOverride.OverrideProhibited
- $year = $previous_year;
+ $year = $previous_year;
return $output;
}