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

Commit

Permalink
Make clicking the X work.
Browse files Browse the repository at this point in the history
  • Loading branch information
Joost de Valk committed Apr 22, 2015
1 parent 663818d commit 4648918
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion i18n-module.php
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ private function init( $args ) {
private function hide_promo() {
$hide_promo = get_transient( 'yoast_i18n_' . $this->project_slug . '_promo_hide' );
if ( ! $hide_promo ) {
if ( filter_input( INPUT_GET, 'remove_i18n_promo', FILTER_NULL_ON_FAILURE ) ) {
if ( filter_input( INPUT_GET, 'remove_i18n_promo', FILTER_VALIDATE_INT ) === 1 ) {
// No expiration time, so this would normally not expire, but it wouldn't be copied to other sites etc.
set_transient( 'yoast_i18n_' . $this->project_slug . '_promo_hide', true );
$hide_promo = true;
Expand Down

0 comments on commit 4648918

Please sign in to comment.