Ticket #13383: escurl.diff
File escurl.diff, 1.6 KB (added by , 14 years ago) |
---|
-
wp-admin/includes/post.php
1143 1143 function _wp_post_thumbnail_html( $thumbnail_id = NULL ) { 1144 1144 global $content_width, $_wp_additional_image_sizes; 1145 1145 1146 $set_thumbnail_link = '<p class="hide-if-no-js"><a title="' . esc_attr__( 'Set featured image' ) . '" href="' . get_upload_iframe_src('image') . '" id="set-post-thumbnail" class="thickbox">%s</a></p>';1146 $set_thumbnail_link = '<p class="hide-if-no-js"><a title="' . esc_attr__( 'Set featured image' ) . '" href="' . esc_url( get_upload_iframe_src('image') ) . '" id="set-post-thumbnail" class="thickbox">%s</a></p>'; 1147 1147 $content = sprintf($set_thumbnail_link, esc_html__( 'Set featured image' )); 1148 1148 1149 1149 if ( $thumbnail_id && get_post( $thumbnail_id ) ) { -
wp-admin/includes/media.php
379 379 add_action( 'media_buttons', 'media_buttons' ); 380 380 381 381 function _media_button($title, $icon, $type) { 382 return "<a href='" . get_upload_iframe_src($type) . "' id='add_$type' class='thickbox' title='$title'><img src='" . esc_url( admin_url( $icon ) ) . "' alt='$title' /></a>";382 return "<a href='" . esc_url( get_upload_iframe_src($type) ) . "' id='add_$type' class='thickbox' title='$title'><img src='" . esc_url( admin_url( $icon ) ) . "' alt='$title' /></a>"; 383 383 } 384 384 385 385 function get_upload_iframe_src($type) {