Ticket #25418: siteurl2.diff
| File siteurl2.diff, 5.5 KB (added by , 12 years ago) |
|---|
-
wp-includes/class-http.php
513 513 if ( ! $check ) 514 514 return true; 515 515 516 $home = parse_url( get_option('siteurl') );516 $home = parse_url( site_url() ); 517 517 518 518 // Don't block requests back to ourselves by default 519 519 if ( $check['host'] == 'localhost' || $check['host'] == $home['host'] ) … … 1525 1525 if ( $check === false ) 1526 1526 return true; 1527 1527 1528 $home = parse_url( get_option('siteurl') );1528 $home = parse_url( site_url() ); 1529 1529 1530 1530 $result = apply_filters( 'pre_http_send_through_proxy', null, $uri, $check, $home ); 1531 1531 if ( ! is_null( $result ) ) -
wp-includes/default-constants.php
91 91 */ 92 92 function wp_plugin_directory_constants() { 93 93 if ( !defined('WP_CONTENT_URL') ) 94 define( 'WP_CONTENT_URL', get_option('siteurl') . '/wp-content'); // full url - WP_CONTENT_DIR is defined further up94 define( 'WP_CONTENT_URL', site_url( '/wp-content' ) ); // full url - WP_CONTENT_DIR is defined further up 95 95 96 96 /** 97 97 * Allows for the plugins directory to be moved from the default location. … … 209 209 * @since 1.5.0 210 210 */ 211 211 if ( !defined('SITECOOKIEPATH') ) 212 define('SITECOOKIEPATH', preg_replace('|https?://[^/]+|i', '', get_option('siteurl') . '/') );212 define('SITECOOKIEPATH', preg_replace('|https?://[^/]+|i', '', site_url('/') ) ); 213 213 214 214 /** 215 215 * @since 2.6.0 -
wp-includes/theme.php
498 498 $theme_root_uri = content_url( 'themes' ); 499 499 } 500 500 501 return apply_filters( 'theme_root_uri', $theme_root_uri, get_option('siteurl'), $stylesheet_or_template );501 return apply_filters( 'theme_root_uri', $theme_root_uri, site_url(), $stylesheet_or_template ); 502 502 } 503 503 504 504 /** -
wp-includes/comment-template.php
858 858 if ( '' != get_option('permalink_structure') ) 859 859 $tb_url = trailingslashit(get_permalink()) . user_trailingslashit('trackback', 'single_trackback'); 860 860 else 861 $tb_url = get_option('siteurl') . '/wp-trackback.php?p=' . get_the_ID();861 $tb_url = site_url( '/wp-trackback.php?p=' . get_the_ID() ); 862 862 863 863 /** 864 864 * Filter the returned trackback URL. … … 1171 1171 if ( empty( $wpcommentspopupfile ) ) 1172 1172 $home = home_url(); 1173 1173 else 1174 $home = get_option('siteurl');1174 $home = site_url(); 1175 1175 echo $home . '/' . $wpcommentspopupfile . '?comments_popup=' . $id; 1176 1176 echo '" onclick="wpopen(this.href); return false"'; 1177 1177 } else { // if comments_popup_script() is not in the template, display simple comment link -
wp-includes/bookmark-template.php
103 103 if ( strpos($bookmark->link_image, 'http') === 0 ) 104 104 $output .= "<img src=\"$bookmark->link_image\" $alt $title />"; 105 105 else // If it's a relative path 106 $output .= "<img src=\"" . get_option('siteurl') . "$bookmark->link_image\" $alt $title />";106 $output .= "<img src=\"" . site_url( $bookmark->link_image ) . "\" $alt $title />"; 107 107 108 108 if ( $show_name ) 109 109 $output .= " $name"; -
wp-includes/user.php
719 719 $blogs[ $blog_id ]->domain = ''; 720 720 $blogs[ $blog_id ]->path = ''; 721 721 $blogs[ $blog_id ]->site_id = 1; 722 $blogs[ $blog_id ]->siteurl = get_option('siteurl');722 $blogs[ $blog_id ]->siteurl = site_url(); 723 723 $blogs[ $blog_id ]->archived = 0; 724 724 $blogs[ $blog_id ]->spam = 0; 725 725 $blogs[ $blog_id ]->deleted = 0; -
wp-includes/general-template.php
478 478 $output = get_feed_link('comments_rss2'); 479 479 break; 480 480 case 'pingback_url': 481 $output = get_option('siteurl') .'/xmlrpc.php';481 $output = site_url() .'/xmlrpc.php'; 482 482 break; 483 483 case 'stylesheet_url': 484 484 $output = get_stylesheet_uri(); -
wp-includes/theme-compat/comments-popup.php
66 66 <h2><?php _e('Leave a comment'); ?></h2> 67 67 <p><?php printf(__('Line and paragraph breaks automatic, e-mail address never displayed, <acronym title="Hypertext Markup Language">HTML</acronym> allowed: <code>%s</code>'), allowed_tags()); ?></p> 68 68 69 <form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">69 <form action="<?php echo site_url(); ?>/wp-comments-post.php" method="post" id="commentform"> 70 70 <?php if ( $user_ID ) : ?> 71 71 <p><?php printf(__('Logged in as <a href="%1$s">%2$s</a>. <a href="%3$s" title="Log out of this account">Log out »</a>'), get_edit_user_link(), $user_identity, wp_logout_url(get_permalink())); ?></p> 72 72 <?php else : ?>