mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 12:20:22 +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:
@@ -185,7 +185,7 @@ function get_theme_data( $theme_file ) {
|
||||
$name = $theme = '';
|
||||
|
||||
if ( preg_match( '|Theme URI:(.*)$|mi', $theme_data, $theme_uri ) )
|
||||
$theme_uri = clean_url( _cleanup_header_comment($theme_uri[1]) );
|
||||
$theme_uri = esc_url( _cleanup_header_comment($theme_uri[1]) );
|
||||
else
|
||||
$theme_uri = '';
|
||||
|
||||
@@ -195,7 +195,7 @@ function get_theme_data( $theme_file ) {
|
||||
$description = '';
|
||||
|
||||
if ( preg_match( '|Author URI:(.*)$|mi', $theme_data, $author_uri ) )
|
||||
$author_uri = clean_url( _cleanup_header_comment($author_uri[1]) );
|
||||
$author_uri = esc_url( _cleanup_header_comment($author_uri[1]) );
|
||||
else
|
||||
$author_uri = '';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user