What is this?

Discussion in 'WordPress' started by bigu, Jul 21, 2010.

  1. #1
    I downloaded a free theme on the net, installed to my blog.

    Today I open comments.php to edit something I see this line:

    		<li style="margin:0px; padding-top:10px" class="<?php if ($comment->comment_author_email == "noel0208@gmail.com") echo 'author'; else echo $oddcomment; ?> item" id="comment-<?php comment_ID() ?>">  
    
    Code (markup):
    Email: in that line.

    What does this mean?
     
    bigu, Jul 21, 2010 IP
  2. lelkoun

    lelkoun Active Member

    Messages:
    288
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    60
    #2
    This is a way of styling comments. Every comment sent by a person who has this e-mail address gets a special CSS style.
     
    lelkoun, Jul 21, 2010 IP
  3. bigu

    bigu Well-Known Member

    Messages:
    1,205
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    100
    #3
    I don't understand much.

    But why ? Is this an email of the theme's author?

    Can I remove it?

    Thanks.
     
    bigu, Jul 21, 2010 IP
  4. lelkoun

    lelkoun Active Member

    Messages:
    288
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    60
    #4
    Maybe the author uses this PHP code on his/her own blog and forgot to delete it.

    Of course, you can. :)
     
    lelkoun, Jul 21, 2010 IP