Changeset 24334 for trunk/wp-includes/media.php
- Timestamp:
- 05/23/2013 05:45:59 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/media.php
r24329 r24334 862 862 $type = wp_check_filetype( $src ); 863 863 if ( ! in_array( $type['ext'], $default_types ) ) 864 return sprintf( '<a class="wp-post-format-link-audio" href="% 1$s">%1$s</a>', $src);864 return sprintf( '<a class="wp-post-format-link-audio" href="%s">%s</a>', esc_url( $src ), esc_html( $src ) ); 865 865 $primary = true; 866 866 array_unshift( $default_types, 'src' ); … … 908 908 $fileurl = $$fallback; 909 909 $type = wp_check_filetype( $$fallback ); 910 $html .= sprintf( $source, $type['type'], $$fallback);910 $html .= sprintf( $source, $type['type'], esc_url( $$fallback ) ); 911 911 } 912 912 } … … 980 980 $type = wp_check_filetype( $src ); 981 981 if ( ! in_array( $type['ext'], $default_types ) ) 982 return sprintf( '<a class="wp-post-format-link-video" href="% 1$s">%1$s</a>', $src);982 return sprintf( '<a class="wp-post-format-link-video" href="%s">%s</a>', esc_url( $src ), esc_html( $src ) ); 983 983 $primary = true; 984 984 array_unshift( $default_types, 'src' ); … … 1034 1034 if ( 'm4v' === $type['ext'] ) 1035 1035 $type['type'] = 'video/m4v'; 1036 $html .= sprintf( $source, $type['type'], $$fallback);1036 $html .= sprintf( $source, $type['type'], esc_url( $$fallback ) ); 1037 1037 } 1038 1038 }
Note: See TracChangeset
for help on using the changeset viewer.