- fixed PHP fatal error on the page list widget displaying;

This commit is contained in:
Nikita Sinelnikov
2021-08-19 14:09:57 +03:00
parent d220fcf4f4
commit ff89c26628
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -710,7 +710,7 @@ if ( ! class_exists( 'um\core\Fields' ) ) {
}
if ( 'profile' === $this->set_mode ) {
if ( ! isset( UM()->form()->post_form['profile_nonce'] ) || UM()->form()->post_form['profile_nonce'] !== UM()->form()->nonce ) {
if ( ! isset( UM()->form()->post_form['profile_nonce'] ) || false === wp_verify_nonce( UM()->form()->post_form['profile_nonce'], 'um-profile-nonce' . UM()->user()->target_id ) ) {
return '';
}
}