mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-17 13:43:38 +09:00
- 2.2.2 release;
This commit is contained in:
@@ -1747,8 +1747,8 @@ if ( ! class_exists( 'um\core\Access' ) ) {
|
||||
function filter_post_thumbnail( $has_thumbnail, $post, $thumbnail_id ) {
|
||||
if ( $this->is_restricted( $thumbnail_id ) ) {
|
||||
$has_thumbnail = false;
|
||||
} elseif ( ! empty( $post ) ) {
|
||||
if ( $this->is_restricted( $post ) ) {
|
||||
} elseif ( ! empty( $post ) && ! empty( $post->ID ) ) {
|
||||
if ( $this->is_restricted( $post->ID ) ) {
|
||||
$has_thumbnail = false;
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user