mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
Deprecate sanitize_url() and clean_url() in favor of esc_url_raw() and esc_url()
git-svn-id: https://develop.svn.wordpress.org/trunk@11383 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -255,7 +255,7 @@ function get_comment_guid($comment_id = null) {
|
||||
* @since 1.5.0
|
||||
*/
|
||||
function comment_link() {
|
||||
echo clean_url( get_comment_link() );
|
||||
echo esc_url( get_comment_link() );
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -503,7 +503,7 @@ function prep_atom_text_construct($data) {
|
||||
function self_link() {
|
||||
$host = @parse_url(get_option('home'));
|
||||
$host = $host['host'];
|
||||
echo clean_url(
|
||||
echo esc_url(
|
||||
'http'
|
||||
. ( (isset($_SERVER['https']) && $_SERVER['https'] == 'on') ? 's' : '' ) . '://'
|
||||
. $host
|
||||
|
||||
Reference in New Issue
Block a user