bronz
Forum Replies Created
Viewing 2 replies - 1 through 2 (of 2 total)
-
function banned_action($errors){ $errors->add( 'invalid_email', $this->options['message'] ); if ( 'yes' === $this->options['redirect'] ) { wp_safe_redirect( $this->options['redirect_url'] ); } else { return true; } } function banhammer_drop($user_login, $user_email, $errors) { $user_email = strtolower($user_email); $bannedlist_string = $this->bannedlist; $bannedlist_array = explode("\n", $bannedlist_string); $bannedlist_size = count($bannedlist_array); $user_email_arr = explode('@', trim($user_email)); $user_domain = end($user_email_arr); // Go through bannedlist for ($i = 0; $i < $bannedlist_size; $i++) { $bannedlist_current = strtolower(trim($bannedlist_array[$i])); if ($user_email == $bannedlist_current) { //email exact match return $this->banned_action($errors); } else if (strpos($bannedlist_current, '@') !== false && strpos($bannedlist_current, '@') === 0) { //"@domain" if ('@' .$user_domain == $bannedlist_current ) { return $this->banned_action($errors); } } else if (strpos($bannedlist_current, '@') === false && strpos($bannedlist_current, '.') !== false) { $banned_have_subdomain = count(explode('.', $bannedlist_current)) > 2; $user_email_have_subdomain = count(explode('.', $user_domain)) > 2; if (!$banned_have_subdomain && !$user_email_have_subdomain) { if (strpos($user_domain, $bannedlist_current) !== false) { //domain.com return $this->banned_action($errors); } } else if ($banned_have_subdomain) { if (strpos($user_domain, $bannedlist_current) !== false) { //.domain.com return $this->banned_action($errors); } } } } return false; }- This reply was modified 3 years, 9 months ago by bronz.
Forum: Fixing WordPress
In reply to: Why don't I see Post Thumbnails in TwentyEleven themeHy all, i have similar problem . The little difference is that i can’t see Featured image in right sidebar. Also screen option in top right of the screen doesn’t have Featured image option.
In my child theme i’ve added this :add_theme_support( ‘post-thumbnails’ );
set_post_thumbnail_size( 100, 100, true ); // hard crop mode true
add_image_size( ‘twentyeleven-thumbnail-feature’, 100, 100);but featured image box still not visible 🙁 . Any ideas ?
Viewing 2 replies - 1 through 2 (of 2 total)