mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-12-06 12:51:58 +00:00
Standardize on 'url' for fetching the blog's url. Props rob1n. fixes #3623
git-svn-id: https://develop.svn.wordpress.org/trunk@4983 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -60,9 +60,11 @@ function wp_meta() {
|
||||
|
||||
function bloginfo($show='') {
|
||||
$info = get_bloginfo($show);
|
||||
if (!strstr($show, 'url') && //don't filter URLs
|
||||
!strstr($show, 'directory') &&
|
||||
!strstr($show, 'home')) {
|
||||
|
||||
// Don't filter URL's.
|
||||
if (strpos($show, 'url') === false ||
|
||||
strpos($show, 'directory') === false ||
|
||||
strpos($show, 'home') === false) {
|
||||
$info = apply_filters('bloginfo', $info, $show);
|
||||
$info = convert_chars($info);
|
||||
} else {
|
||||
@@ -72,13 +74,18 @@ function bloginfo($show='') {
|
||||
echo $info;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Note: some of these values are DEPRECATED. Meaning they could be
|
||||
* taken out at any time and shouldn't be relied upon. Options
|
||||
* without "// DEPRECATED" are the preferred and recommended ways
|
||||
* to get the information.
|
||||
*/
|
||||
function get_bloginfo($show='') {
|
||||
|
||||
switch($show) {
|
||||
case 'url' :
|
||||
case 'home' :
|
||||
case 'siteurl' :
|
||||
case 'home' : // DEPRECATED
|
||||
case 'siteurl' : // DEPRECATED
|
||||
$output = get_option('home');
|
||||
break;
|
||||
case 'wpurl' :
|
||||
|
||||
Reference in New Issue
Block a user