Make WordPress Core

Ticket #11652: 11652.diff

File 11652.diff, 5.5 KB (added by nacin, 17 years ago)
  • wp-app.php

     
    371371                if( !current_user_can( 'edit_posts' ) )
    372372                        $this->auth_required( __( 'Sorry, you do not have the right to access this blog.' ) );
    373373
    374                 $home = esc_attr(get_bloginfo_rss('home'));
     374                $home = esc_attr(get_bloginfo_rss('url'));
    375375
    376376                $categories = "";
    377377                $cats = get_categories(array('hierarchical' => 0, 'hide_empty' => 0));
  • wp-content/themes/classic/sidebar.php

     
    1515        <?php wp_list_categories('title_li=' . __('Categories:')); ?>
    1616 <li id="search">
    1717   <label for="s"><?php _e('Search:'); ?></label>
    18    <form id="searchform" method="get" action="<?php bloginfo('home'); ?>">
     18   <form id="searchform" method="get" action="<?php bloginfo('url'); ?>">
    1919        <div>
    2020                <input type="text" name="s" id="s" size="15" /><br />
    2121                <input type="submit" value="<?php esc_attr_e('Search'); ?>" />
  • wp-includes/feed-atom-comments.php

     
    3636        <link rel="self" type="application/atom+xml" href="<?php echo get_search_comments_feed_link('', 'atom'); ?>" />
    3737        <id><?php echo get_search_comments_feed_link('', 'atom'); ?></id>
    3838<?php } else { ?>
    39         <link rel="alternate" type="<?php bloginfo_rss('html_type'); ?>" href="<?php bloginfo_rss('home'); ?>" />
     39        <link rel="alternate" type="<?php bloginfo_rss('html_type'); ?>" href="<?php bloginfo_rss('url'); ?>" />
    4040        <link rel="self" type="application/atom+xml" href="<?php bloginfo_rss('comments_atom_url'); ?>" />
    4141        <id><?php bloginfo_rss('comments_atom_url'); ?></id>
    4242<?php } ?>
  • wp-includes/feed-atom.php

     
    1313  xmlns="http://www.w3.org/2005/Atom"
    1414  xmlns:thr="http://purl.org/syndication/thread/1.0"
    1515  xml:lang="<?php echo get_option('rss_language'); ?>"
    16   xml:base="<?php bloginfo_rss('home') ?>/wp-atom.php"
     16  xml:base="<?php bloginfo_rss('url') ?>/wp-atom.php"
    1717  <?php do_action('atom_ns'); ?>
    1818 >
    1919        <title type="text"><?php bloginfo_rss('name'); wp_title_rss(); ?></title>
    … …  
    2222        <updated><?php echo mysql2date('Y-m-d\TH:i:s\Z', get_lastpostmodified('GMT'), false); ?></updated>
    2323        <?php the_generator( 'atom' ); ?>
    2424
    25         <link rel="alternate" type="text/html" href="<?php bloginfo_rss('home') ?>" />
     25        <link rel="alternate" type="text/html" href="<?php bloginfo_rss('url') ?>" />
    2626        <id><?php bloginfo('atom_url'); ?></id>
    2727        <link rel="self" type="application/atom+xml" href="<?php self_link(); ?>" />
    2828
  • wp-includes/general-template.php

     
    273273 * Retrieve information about the blog.
    274274 *
    275275 * Some show parameter values are deprecated and will be removed in future
    276  * versions. Care should be taken to check the function contents and know what
    277  * the deprecated blog info options are. Options without "// DEPRECATED" are
    278  * the preferred and recommended ways to get the information.
     276 * versions. These options will trigger the _deprecated_argument() function.
     277 * The deprecated blog info options are listed in the function contents.
    279278 *
    280279 * The possible values for the 'show' parameter are listed below.
    281280 * <ol>
    … …  
    289288 * comment feeds can be retrieved from the 'comments_atom_url' (Atom comment
    290289 * feed) or 'comments_rss2_url' (RSS 2.0 comment feed).
    291290 *
    292  * There are many other options and you should check the function contents:
    293  * {@source 32 37}
    294  *
    295291 * @since 0.71
    296292 *
    297293 * @param string $show Blog info to retrieve.
    298294 * @param string $filter How to filter what is retrieved.
    299295 * @return string Mostly string values, might be empty.
    300296 */
    301 function get_bloginfo($show = '', $filter = 'raw') {
     297function get_bloginfo( $show = '', $filter = 'raw' ) {
     298        // 'deprecated option' => array( 'version deprecated', 'option to use instead' )
     299        $deprecated = array(
     300                'home' => array( '2.2', 'url' ),
     301                'siteurl' => array( '2.2', 'url' ),
     302        );
    302303
    303         switch($show) {
     304        if ( isset( $deprecated[$show] ) ) {
     305                _deprecated_argument( __FUNCTION__, $deprecated[$show][0], sprintf( __('The \'%1$s\' option is deprecated for the family of bloginfo() functions. Use the \'%2$s\' option instead.'), $show, $deprecated[$show][1] ) );
     306                $show = $deprecated[$show][1];
     307        }
     308
     309        switch( $show ) {
    304310                case 'url' :
    305                 case 'home' : // DEPRECATED
    306                 case 'siteurl' : // DEPRECATED
    307311                        $output = get_option('home');
    308312                        break;
    309313                case 'wpurl' :
  • wp-includes/link-template.php

     
    13011301        $request = preg_replace('|^/+|', '', $request);
    13021302
    13031303        if ( !$wp_rewrite->using_permalinks() || is_admin() ) {
    1304                 $base = trailingslashit( get_bloginfo( 'home' ) );
     1304                $base = trailingslashit( get_bloginfo( 'url' ) );
    13051305
    13061306                if ( $pagenum > 1 ) {
    13071307                        $result = add_query_arg( 'paged', $pagenum, $base . $request );