Changeset 53455 for trunk/src/wp-includes/theme.php
- Timestamp:
- 06/01/2022 06:12:25 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/theme.php
r53416 r53455 1180 1180 } 1181 1181 1182 return esc_url_raw( set_url_scheme( $url ) );1182 return sanitize_url( set_url_scheme( $url ) ); 1183 1183 } 1184 1184 … … 1429 1429 1430 1430 foreach ( (array) $headers as $header ) { 1431 $url = esc_url_raw( wp_get_attachment_url( $header->ID ) );1431 $url = sanitize_url( wp_get_attachment_url( $header->ID ) ); 1432 1432 $header_data = wp_get_attachment_metadata( $header->ID ); 1433 1433 $header_index = $header->ID; … … 1590 1590 } 1591 1591 1592 return esc_url_raw( set_url_scheme( $url ) );1592 return sanitize_url( set_url_scheme( $url ) ); 1593 1593 } 1594 1594 … … 1807 1807 1808 1808 if ( $background ) { 1809 $image = ' background-image: url("' . esc_url_raw( $background ) . '");';1809 $image = ' background-image: url("' . sanitize_url( $background ) . '");'; 1810 1810 1811 1811 // Background Position. … … 2147 2147 foreach ( $editor_styles as $key => $file ) { 2148 2148 if ( preg_match( '~^(https?:)?//~', $file ) ) { 2149 $stylesheets[] = esc_url_raw( $file );2149 $stylesheets[] = sanitize_url( $file ); 2150 2150 unset( $editor_styles[ $key ] ); 2151 2151 }
Note: See TracChangeset
for help on using the changeset viewer.