Make WordPress Core


Ignore:
Timestamp:
03/07/2007 03:05:41 AM (20 years ago)
Author:
ryan
Message:

Standardize on 'url' for fetching the blog's url. Props rob1n. fixes #3623

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/general-template.php

    r4976 r4983  
    6161function bloginfo($show='') {
    6262        $info = get_bloginfo($show);
    63         if (!strstr($show, 'url') && //don't filter URLs
    64                 !strstr($show, 'directory') &&
    65                 !strstr($show, 'home')) {
     63       
     64        // Don't filter URL's.
     65        if (strpos($show, 'url') === false ||
     66                strpos($show, 'directory') === false ||
     67                strpos($show, 'home') === false) {
    6668                $info = apply_filters('bloginfo', $info, $show);
    6769                $info = convert_chars($info);
     
    7375}
    7476
    75 
     77/**
     78 * Note: some of these values are DEPRECATED. Meaning they could be
     79 * taken out at any time and shouldn't be relied upon. Options
     80 * without "// DEPRECATED" are the preferred and recommended ways
     81 * to get the information.
     82 */
    7683function get_bloginfo($show='') {
    7784
    7885        switch($show) {
    7986                case 'url' :
    80                 case 'home' :
    81                 case 'siteurl' :
     87                case 'home' : // DEPRECATED
     88                case 'siteurl' : // DEPRECATED
    8289                        $output = get_option('home');
    8390                        break;
Note: See TracChangeset for help on using the changeset viewer.