[wp-trac] Re: [WordPress Trac] #4749: bloginfo returing invalid
results
WordPress Trac
wp-trac at lists.automattic.com
Tue Aug 14 23:58:25 GMT 2007
#4749: bloginfo returing invalid results
-------------------------+--------------------------------------------------
Reporter: flyingkites | Owner: anonymous
Type: defect | Status: new
Priority: normal | Milestone: 2.4 (future)
Component: General | Version: 2.2.2
Severity: normal | Resolution:
Keywords: bloginfo |
-------------------------+--------------------------------------------------
Comment (by DD32):
{{{ bloginfo() }}} has a pre-defined set of items which it returns, One of
them is 'description'
wp-includes/general-template.php:
{{{
case 'description':
$output = get_option('blogdescription');
break;
}}}
When you call {{{ bloginfo('description') }}} it returns the options value
of 'blogdescription'. (I'm basing this on 2.2.1)
That Description is set via Admin->Options->"Tagline:"
Else if you defined a custom option, and wanted to display that, you'd
use:
{{{ echo get_option('my_custom_option'); }}}
D
--
Ticket URL: <http://trac.wordpress.org/ticket/4749#comment:1>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list