Example #1
0
 public static function validateRealName($str)
 {
     if (parent::validateRealName($str)) {
         /**
          * Taxonomy name regulation.
          *
          * @see http://codex.wordpress.org/Function_Reference/register_taxonomy#Parameters
          */
         if (strlen($str) < 33 && !@preg_match('/[0-9\\-]/', $str)) {
             return true;
         }
     }
     return false;
 }
Example #2
0
 public static function validateRealName($str)
 {
     return parent::validateRealName($str) && strlen($str) < 21;
 }