Skip to content
This repository was archived by the owner on Sep 28, 2023. It is now read-only.

Commit 4648918

Browse files
author
Joost de Valk
committed
Make clicking the X work.
1 parent 663818d commit 4648918

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

i18n-module.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ private function init( $args ) {
146146
private function hide_promo() {
147147
$hide_promo = get_transient( 'yoast_i18n_' . $this->project_slug . '_promo_hide' );
148148
if ( ! $hide_promo ) {
149-
if ( filter_input( INPUT_GET, 'remove_i18n_promo', FILTER_NULL_ON_FAILURE ) ) {
149+
if ( filter_input( INPUT_GET, 'remove_i18n_promo', FILTER_VALIDATE_INT ) === 1 ) {
150150
// No expiration time, so this would normally not expire, but it wouldn't be copied to other sites etc.
151151
set_transient( 'yoast_i18n_' . $this->project_slug . '_promo_hide', true );
152152
$hide_promo = true;

0 commit comments

Comments
 (0)