Ticket #11652: 11652.diff
| File 11652.diff, 5.5 KB (added by , 17 years ago) |
|---|
-
wp-app.php
371 371 if( !current_user_can( 'edit_posts' ) ) 372 372 $this->auth_required( __( 'Sorry, you do not have the right to access this blog.' ) ); 373 373 374 $home = esc_attr(get_bloginfo_rss(' home'));374 $home = esc_attr(get_bloginfo_rss('url')); 375 375 376 376 $categories = ""; 377 377 $cats = get_categories(array('hierarchical' => 0, 'hide_empty' => 0)); -
wp-content/themes/classic/sidebar.php
15 15 <?php wp_list_categories('title_li=' . __('Categories:')); ?> 16 16 <li id="search"> 17 17 <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'); ?>"> 19 19 <div> 20 20 <input type="text" name="s" id="s" size="15" /><br /> 21 21 <input type="submit" value="<?php esc_attr_e('Search'); ?>" /> -
wp-includes/feed-atom-comments.php
36 36 <link rel="self" type="application/atom+xml" href="<?php echo get_search_comments_feed_link('', 'atom'); ?>" /> 37 37 <id><?php echo get_search_comments_feed_link('', 'atom'); ?></id> 38 38 <?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'); ?>" /> 40 40 <link rel="self" type="application/atom+xml" href="<?php bloginfo_rss('comments_atom_url'); ?>" /> 41 41 <id><?php bloginfo_rss('comments_atom_url'); ?></id> 42 42 <?php } ?> -
wp-includes/feed-atom.php
13 13 xmlns="http://www.w3.org/2005/Atom" 14 14 xmlns:thr="http://purl.org/syndication/thread/1.0" 15 15 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" 17 17 <?php do_action('atom_ns'); ?> 18 18 > 19 19 <title type="text"><?php bloginfo_rss('name'); wp_title_rss(); ?></title> … … 22 22 <updated><?php echo mysql2date('Y-m-d\TH:i:s\Z', get_lastpostmodified('GMT'), false); ?></updated> 23 23 <?php the_generator( 'atom' ); ?> 24 24 25 <link rel="alternate" type="text/html" href="<?php bloginfo_rss(' home') ?>" />25 <link rel="alternate" type="text/html" href="<?php bloginfo_rss('url') ?>" /> 26 26 <id><?php bloginfo('atom_url'); ?></id> 27 27 <link rel="self" type="application/atom+xml" href="<?php self_link(); ?>" /> 28 28 -
wp-includes/general-template.php
273 273 * Retrieve information about the blog. 274 274 * 275 275 * 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. 279 278 * 280 279 * The possible values for the 'show' parameter are listed below. 281 280 * <ol> … … 289 288 * comment feeds can be retrieved from the 'comments_atom_url' (Atom comment 290 289 * feed) or 'comments_rss2_url' (RSS 2.0 comment feed). 291 290 * 292 * There are many other options and you should check the function contents:293 * {@source 32 37}294 *295 291 * @since 0.71 296 292 * 297 293 * @param string $show Blog info to retrieve. 298 294 * @param string $filter How to filter what is retrieved. 299 295 * @return string Mostly string values, might be empty. 300 296 */ 301 function get_bloginfo($show = '', $filter = 'raw') { 297 function 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 ); 302 303 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 ) { 304 310 case 'url' : 305 case 'home' : // DEPRECATED306 case 'siteurl' : // DEPRECATED307 311 $output = get_option('home'); 308 312 break; 309 313 case 'wpurl' : -
wp-includes/link-template.php
1301 1301 $request = preg_replace('|^/+|', '', $request); 1302 1302 1303 1303 if ( !$wp_rewrite->using_permalinks() || is_admin() ) { 1304 $base = trailingslashit( get_bloginfo( ' home' ) );1304 $base = trailingslashit( get_bloginfo( 'url' ) ); 1305 1305 1306 1306 if ( $pagenum > 1 ) { 1307 1307 $result = add_query_arg( 'paged', $pagenum, $base . $request );