Merge pull request #768 from ultimatemember/fix/jQuery_3_compatibility

jQuery 3 compatibility (for WordPress 5.7 and higher)
This commit is contained in:
Nikita Sinelnikov
2021-03-05 18:21:34 +02:00
committed by GitHub
14 changed files with 44 additions and 44 deletions
+1 -1
View File
@@ -1721,7 +1721,7 @@ if ( ! class_exists( 'um\core\User' ) ) {
// Setting "Avoid indexing profile by search engines" in [wp-admin > Ultimate Member > User Roles > Edit Role]
$profile_noindex = true;
} elseif ( $permissions['profile_noindex'] === '' && UM()->options()->get( 'profile_noindex' ) === '1' ) {
} elseif ( ( ! isset( $permissions['profile_noindex'] ) || $permissions['profile_noindex'] === '' ) && UM()->options()->get( 'profile_noindex' ) === '1' ) {
// Setting "Avoid indexing profile by search engines" in [wp-admin > Ultimate Member > Settings > General > Users]
$profile_noindex = true;