Title: bronz's Replies | WordPress.org

---

# bronz

  [  ](https://wordpress.org/support/users/bronz/)

 *   [Profile](https://wordpress.org/support/users/bronz/)
 *   [Topics Started](https://wordpress.org/support/users/bronz/topics/)
 *   [Replies Created](https://wordpress.org/support/users/bronz/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/bronz/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/bronz/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/bronz/engagements/)
 *   [Favorites](https://wordpress.org/support/users/bronz/favorites/)

 Search replies:

## Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Banhammer – Monitor Site Traffic, Block Bad Users and Bots] False positive, possible bug](https://wordpress.org/support/topic/false-positive-possible-bug/)
 *  Thread Starter [bronz](https://wordpress.org/support/users/bronz/)
 * (@bronz)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/false-positive-possible-bug/#post-15887609)
 *     ```
       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](https://wordpress.org/support/users/bronz/).
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Why don't I see Post Thumbnails in TwentyEleven theme](https://wordpress.org/support/topic/why-dont-i-see-post-thumbnails-in-twentyeleven-theme/)
 *  [bronz](https://wordpress.org/support/users/bronz/)
 * (@bronz)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/why-dont-i-see-post-thumbnails-in-twentyeleven-theme/page/2/#post-2174339)
 * Hy 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)