How to hide username displayed in code with Omega 3 theme Drupal 7 with Omega version 3 theme generates a username class for the article tag in the HTML code, something like : 

class="node node-page node-published node-not-promoted node-not-sticky author-USERNAME odd clearfix". 

I'd like to avoid having the username displayed in the code for security reasons.

After investigating, this comes from the code "omega_alpha_preprocess_node()" in the "sites/all/themes/omega/omega/template.php" where you find the following line:

"$vars['attributes_array']['class'][] = drupal_html_class('author-' . $vars['node']-&gt;name); "


I copied the code of "omega_alpha_preprocess_node()" to the "template.php" of my Omega subtheme, I renamed the "omega_alpha_preprocess_node()" to "MYTHEME_alpha_preprocess_node" and removed the line "$vars['attributes_array']['class']". Unfortunatly, it does not work. 

As of today, the solution I found is to remove the line "$vars['attributes_array']['class']" from the initial Omega template.php file, which is not the best practice, but it works and the username output as a class of an article tag is no longer displayed. 

Can someone help me find a more elegant solution, as I'm not a very experienced Omega developer and I need guidance? Thank you.
The theme function your trying to us is theme_preprocess_node, and you'r correct in replacing the Omega with [yourtheme].

The reason the function isn't getting called though is MYTHEME_alpha_preprocess_node should just be MYTHEME_preprocess_node. Alpha is part of the theme name, so if you remove it, the function should start working for you once you clear your cache.

EDIT ---------------------------------

Because drupal's template functions are still hooks, you can't just override the preprocess_node function, as omega's preprocess function is still going to run. However, what you can do is edit the $vars variable. Make sure you have the &amp; in the param ( ie function (&amp;$vars) ) so the vars is a reference.

From there, you should be able to modify the $vars['attributes_array']['class'] array and remove the unwanted class. 

So if you put something like this in your code, that should get you close to where you might need to be. 

function mytheme_preprocess_node (&amp;$vars){
    $count = 0;
      foreach($vars['attributes_array']['class'] as $class){
        if(substr( $class, 0, 7 ) === "author-"){
          unset($vars['attributes_array']['class'][$count]);
        }
        $count += 1; 
      }
}


EDIT 2 ============================

When I say remove the class from the var, I mean you should just be able to unset the variable (I updated my code snippet to show it inside the preprocess function).

You don't need to copy the whole of the omega_alpha_preprocess_node. What you actually are doing when you define your own theme_preprocess_node function is your telling drupal you would like to modify the variables for the node before it processes it. Because your working from a subtheme, the parent theme is still going to run it's own preprocess functions. So that class will always be added via omega. However, because your subtheme's preprocess function is downstream, it will get the &amp;$vars reference with that class already added to it. So instead of rewriting the function, all that is needed is to simply remove the class from the $vars variable that you received in your params.