What's the meaning of if(1)

  • Author
    Posts
  • #33173
    Gianmarco

    Hello everybody, I was studying the code of your theme that I am “childing” to fit to my needs when I came in front of this piece of code:

    if( 1) { 
    		add_action('cryout_post_meta_hook','tempera_posted_on',10);
    		add_action('cryout_post_meta_hook','tempera_posted_after',11);
    		add_action('cryout_post_meta_hook','tempera_comments_on',12);
    	}

    Line 229 of theme-loop.php

    And I would like to know what’s the reason for that “if(1)” or if it is an error.

    Thank you for your big work.

    #33234
    Zed
    Cryout Creations mastermind

    That was in fact an error messing up the meta information display which we’ve fixed in 1.3.2.


    If you like our creations, help us share by rating them on WordPress.org.
    Please check the available documentation and search the forums before starting a topic.
Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘What's the meaning of if(1)’ is closed to new replies.