Plugin Directory

Changeset 646330


Ignore:
Timestamp:
12/31/2012 09:49:21 AM (13 years ago)
Author:
misternifty
Message:

Updated bloginfo to true values rather than dupe bloginfo functionality

File:
1 edited

Legend:

Unmodified
Added
Removed
  • debug-this/trunk/_inc/extensions.php

    r646297 r646330  
    136136        global $wp_version;
    137137        $bloginfo = array(
    138             'url' => home_url(),
    139             'wpurl' => site_url(),
    140             'description' => get_option('blogdescription'),
    141             'rdf_url' => get_feed_link('rdf'),
    142             'rss_url' => get_feed_link('rss'),
    143             'rss2_url' => get_feed_link('rss2'),
    144             'atom_url' => get_feed_link('atom'),
    145             'comments_atom_url' => get_feed_link('comments_atom'),
    146             'comments_rss2_url' => get_feed_link('comments_rss2'),
    147             'pingback_url' => get_option('siteurl') .'/xmlrpc.php',
    148             'stylesheet_url' => get_stylesheet_uri(),
    149             'stylesheet_directory' => get_stylesheet_directory_uri(),
    150             'template_directory' => '',
    151             'template_url' => get_template_directory_uri(),
    152             'admin_email' => get_option('admin_email'),
    153             'charset' => get_option('blog_charset') ? get_option('blog_charset') : 'UTF-8',
    154             'html_type' => get_option('html_type'),
    155             'version' => $wp_version,
    156             'language' => str_replace('_', '-', get_locale()),
    157             'name' => get_option('blogname')
     138            'url' => get_bloginfo('url'),
     139            'wpurl' => get_bloginfo('wpurl'),
     140            'description' => get_bloginfo('description'),
     141            'rdf_url' => get_bloginfo('rdf_url'),
     142            'rss_url' => get_bloginfo('rss_url'),
     143            'rss2_url' => get_bloginfo('rss2_url'),
     144            'atom_url' => get_bloginfo('atom_url'),
     145            'comments_atom_url' => get_bloginfo('comments_atom_url'),
     146            'comments_rss2_url' => get_bloginfo('comments_rss2_url'),
     147            'pingback_url' => get_bloginfo('pingback_url'),
     148            'stylesheet_url' => get_bloginfo('stylesheet_url'),
     149            'stylesheet_directory' => get_bloginfo('stylesheet_directory'),
     150            'template_directory' => get_bloginfo('template_directory'),
     151            'template_url' => get_bloginfo('template_url'),
     152            'admin_email' => get_bloginfo('admin_email'),
     153            'charset' => get_bloginfo('charset'),
     154            'html_type' => get_bloginfo('html_type'),
     155            'version' => get_bloginfo('version'),
     156            'language' => get_bloginfo('language'),
     157            'name' => get_bloginfo('name')
    158158        );
    159159        $debug = print_r($bloginfo, true);
Note: See TracChangeset for help on using the changeset viewer.