| 1 | Index: wp-app.php |
|---|
| 2 | =================================================================== |
|---|
| 3 | --- wp-app.php (revision 12551) |
|---|
| 4 | +++ wp-app.php (working copy) |
|---|
| 5 | @@ -371,7 +371,7 @@ |
|---|
| 6 | if( !current_user_can( 'edit_posts' ) ) |
|---|
| 7 | $this->auth_required( __( 'Sorry, you do not have the right to access this blog.' ) ); |
|---|
| 8 | |
|---|
| 9 | - $home = esc_attr(get_bloginfo_rss('home')); |
|---|
| 10 | + $home = esc_attr(get_bloginfo_rss('url')); |
|---|
| 11 | |
|---|
| 12 | $categories = ""; |
|---|
| 13 | $cats = get_categories(array('hierarchical' => 0, 'hide_empty' => 0)); |
|---|
| 14 | Index: wp-content/themes/classic/sidebar.php |
|---|
| 15 | =================================================================== |
|---|
| 16 | --- wp-content/themes/classic/sidebar.php (revision 12551) |
|---|
| 17 | +++ wp-content/themes/classic/sidebar.php (working copy) |
|---|
| 18 | @@ -15,7 +15,7 @@ |
|---|
| 19 | <?php wp_list_categories('title_li=' . __('Categories:')); ?> |
|---|
| 20 | <li id="search"> |
|---|
| 21 | <label for="s"><?php _e('Search:'); ?></label> |
|---|
| 22 | - <form id="searchform" method="get" action="<?php bloginfo('home'); ?>"> |
|---|
| 23 | + <form id="searchform" method="get" action="<?php bloginfo('url'); ?>"> |
|---|
| 24 | <div> |
|---|
| 25 | <input type="text" name="s" id="s" size="15" /><br /> |
|---|
| 26 | <input type="submit" value="<?php esc_attr_e('Search'); ?>" /> |
|---|
| 27 | Index: wp-includes/feed-atom-comments.php |
|---|
| 28 | =================================================================== |
|---|
| 29 | --- wp-includes/feed-atom-comments.php (revision 12551) |
|---|
| 30 | +++ wp-includes/feed-atom-comments.php (working copy) |
|---|
| 31 | @@ -36,7 +36,7 @@ |
|---|
| 32 | <link rel="self" type="application/atom+xml" href="<?php echo get_search_comments_feed_link('', 'atom'); ?>" /> |
|---|
| 33 | <id><?php echo get_search_comments_feed_link('', 'atom'); ?></id> |
|---|
| 34 | <?php } else { ?> |
|---|
| 35 | - <link rel="alternate" type="<?php bloginfo_rss('html_type'); ?>" href="<?php bloginfo_rss('home'); ?>" /> |
|---|
| 36 | + <link rel="alternate" type="<?php bloginfo_rss('html_type'); ?>" href="<?php bloginfo_rss('url'); ?>" /> |
|---|
| 37 | <link rel="self" type="application/atom+xml" href="<?php bloginfo_rss('comments_atom_url'); ?>" /> |
|---|
| 38 | <id><?php bloginfo_rss('comments_atom_url'); ?></id> |
|---|
| 39 | <?php } ?> |
|---|
| 40 | Index: wp-includes/feed-atom.php |
|---|
| 41 | =================================================================== |
|---|
| 42 | --- wp-includes/feed-atom.php (revision 12551) |
|---|
| 43 | +++ wp-includes/feed-atom.php (working copy) |
|---|
| 44 | @@ -13,7 +13,7 @@ |
|---|
| 45 | xmlns="http://www.w3.org/2005/Atom" |
|---|
| 46 | xmlns:thr="http://purl.org/syndication/thread/1.0" |
|---|
| 47 | xml:lang="<?php echo get_option('rss_language'); ?>" |
|---|
| 48 | - xml:base="<?php bloginfo_rss('home') ?>/wp-atom.php" |
|---|
| 49 | + xml:base="<?php bloginfo_rss('url') ?>/wp-atom.php" |
|---|
| 50 | <?php do_action('atom_ns'); ?> |
|---|
| 51 | > |
|---|
| 52 | <title type="text"><?php bloginfo_rss('name'); wp_title_rss(); ?></title> |
|---|
| 53 | @@ -22,7 +22,7 @@ |
|---|
| 54 | <updated><?php echo mysql2date('Y-m-d\TH:i:s\Z', get_lastpostmodified('GMT'), false); ?></updated> |
|---|
| 55 | <?php the_generator( 'atom' ); ?> |
|---|
| 56 | |
|---|
| 57 | - <link rel="alternate" type="text/html" href="<?php bloginfo_rss('home') ?>" /> |
|---|
| 58 | + <link rel="alternate" type="text/html" href="<?php bloginfo_rss('url') ?>" /> |
|---|
| 59 | <id><?php bloginfo('atom_url'); ?></id> |
|---|
| 60 | <link rel="self" type="application/atom+xml" href="<?php self_link(); ?>" /> |
|---|
| 61 | |
|---|
| 62 | Index: wp-includes/general-template.php |
|---|
| 63 | =================================================================== |
|---|
| 64 | --- wp-includes/general-template.php (revision 12551) |
|---|
| 65 | +++ wp-includes/general-template.php (working copy) |
|---|
| 66 | @@ -273,9 +273,8 @@ |
|---|
| 67 | * Retrieve information about the blog. |
|---|
| 68 | * |
|---|
| 69 | * Some show parameter values are deprecated and will be removed in future |
|---|
| 70 | - * versions. Care should be taken to check the function contents and know what |
|---|
| 71 | - * the deprecated blog info options are. Options without "// DEPRECATED" are |
|---|
| 72 | - * the preferred and recommended ways to get the information. |
|---|
| 73 | + * versions. These options will trigger the _deprecated_argument() function. |
|---|
| 74 | + * The deprecated blog info options are listed in the function contents. |
|---|
| 75 | * |
|---|
| 76 | * The possible values for the 'show' parameter are listed below. |
|---|
| 77 | * <ol> |
|---|
| 78 | @@ -289,21 +288,26 @@ |
|---|
| 79 | * comment feeds can be retrieved from the 'comments_atom_url' (Atom comment |
|---|
| 80 | * feed) or 'comments_rss2_url' (RSS 2.0 comment feed). |
|---|
| 81 | * |
|---|
| 82 | - * There are many other options and you should check the function contents: |
|---|
| 83 | - * {@source 32 37} |
|---|
| 84 | - * |
|---|
| 85 | * @since 0.71 |
|---|
| 86 | * |
|---|
| 87 | * @param string $show Blog info to retrieve. |
|---|
| 88 | * @param string $filter How to filter what is retrieved. |
|---|
| 89 | * @return string Mostly string values, might be empty. |
|---|
| 90 | */ |
|---|
| 91 | -function get_bloginfo($show = '', $filter = 'raw') { |
|---|
| 92 | +function get_bloginfo( $show = '', $filter = 'raw' ) { |
|---|
| 93 | + // 'deprecated option' => array( 'version deprecated', 'option to use instead' ) |
|---|
| 94 | + $deprecated = array( |
|---|
| 95 | + 'home' => array( '2.2', 'url' ), |
|---|
| 96 | + 'siteurl' => array( '2.2', 'url' ), |
|---|
| 97 | + ); |
|---|
| 98 | |
|---|
| 99 | - switch($show) { |
|---|
| 100 | + if ( isset( $deprecated[$show] ) ) { |
|---|
| 101 | + _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] ) ); |
|---|
| 102 | + $show = $deprecated[$show][1]; |
|---|
| 103 | + } |
|---|
| 104 | + |
|---|
| 105 | + switch( $show ) { |
|---|
| 106 | case 'url' : |
|---|
| 107 | - case 'home' : // DEPRECATED |
|---|
| 108 | - case 'siteurl' : // DEPRECATED |
|---|
| 109 | $output = get_option('home'); |
|---|
| 110 | break; |
|---|
| 111 | case 'wpurl' : |
|---|
| 112 | Index: wp-includes/link-template.php |
|---|
| 113 | =================================================================== |
|---|
| 114 | --- wp-includes/link-template.php (revision 12551) |
|---|
| 115 | +++ wp-includes/link-template.php (working copy) |
|---|
| 116 | @@ -1301,7 +1301,7 @@ |
|---|
| 117 | $request = preg_replace('|^/+|', '', $request); |
|---|
| 118 | |
|---|
| 119 | if ( !$wp_rewrite->using_permalinks() || is_admin() ) { |
|---|
| 120 | - $base = trailingslashit( get_bloginfo( 'home' ) ); |
|---|
| 121 | + $base = trailingslashit( get_bloginfo( 'url' ) ); |
|---|
| 122 | |
|---|
| 123 | if ( $pagenum > 1 ) { |
|---|
| 124 | $result = add_query_arg( 'paged', $pagenum, $base . $request ); |
|---|