Skip to content

Commit 214cea0

Browse files
committed
Merge pull request #246 from jrfnl/Notices-on-switch-theme
[Develop] Bug fix: only the user which switched theme would be re-notified
2 parents c1485fc + edc12d9 commit 214cea0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

class-tgm-plugin-activation.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -963,14 +963,14 @@ protected function is_tgmpa_page() {
963963
/**
964964
* Delete dismissable nag option when theme is switched.
965965
*
966-
* This ensures that the user is again reminded via nag of required
966+
* This ensures that the user(s) is/are again reminded via nag of required
967967
* and/or recommended plugins if they re-activate the theme.
968968
*
969969
* @since 2.1.1
970970
*/
971971
public function update_dismiss() {
972972

973-
delete_user_meta( get_current_user_id(), 'tgmpa_dismissed_notice_' . $this->id );
973+
delete_metadata( 'user', null, 'tgmpa_dismissed_notice_' . $this->id, null, true );
974974

975975
}
976976

0 commit comments

Comments
 (0)