So I am new to WP in general as well as developing themes, child-themes, templates, etc.
I am going through the twentyten theme and noticed that in the header.php file there is a call to get_bloginfo( 'name', 'display' ) and then just a few characters later there's a call to bloginfo( 'name' ).
It is confusing, first off, to me that there are two functions for getting blog info that essentially take similar parameters and return essentially similar data, just in different formats.
What made this journey for understanding all the more 'Alic in Wonderland'-esque was the seemingly undefined second parameter being passed to get_bloginfo: 'display'.
The code I'm speaking of in header.php is (starting on line 50, I believe):
<span> <a href="<?php echo home_url( '/' ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a> </span>
I understand that get_bloginfo is called first because another php function is being used on the returned string data, making the use of bloginfo impossible. However, what is the purpose of the second paramter sent to that function, 'display'.
Looking at the general WP codex function def for get_bloginfo it is not defined or mentioned at all.
ref. located here: http://codex.wordpress.org/Function_Reference/get_bloginfo
However, there is reference to the mystery second parameter in the WPMU codex here: http://codex.wordpress.org/WPMU_Functions/get_bloginfo
The WPMU codex for this function is wanting for a description of the possible values of the $filter second parameter, other than the default 'raw'.
I'm assuming that the writers of the twentyten theme used the second parameter out of old WPMU habit, rather than actual necessity? In tests I've run I have been unable to see any effect of the second parameter. If this is just a carryover from WPMU, is there any validity to passing the second parameter?
Is there documentation I'm missing on template tags and general acceptance of an optional second parameter?
Help!? I have to know or I won't sleep! :)
Love what you're doing here!