X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/607b7e02d77e7326161e8ec15639052d2040f745..e3ff8f35458a959c1879c0a4976701ed8dcfe651:/wp-includes/media-template.php diff --git a/wp-includes/media-template.php b/wp-includes/media-template.php index 7d2d2bf4..f12b11cf 100644 --- a/wp-includes/media-template.php +++ b/wp-includes/media-template.php @@ -290,9 +290,9 @@ function wp_print_media_templates() {
<# if ( data.uploading ) { #>
- <# } else if ( 'image' === data.type && data.sizes && data.sizes.large ) { #> + <# } else if ( data.sizes && data.sizes.large ) { #> - <# } else if ( 'image' === data.type && data.sizes && data.sizes.full ) { #> + <# } else if ( data.sizes && data.sizes.full ) { #> <# } else if ( -1 === jQuery.inArray( data.type, [ 'audio', 'video' ] ) ) { #> @@ -325,6 +325,8 @@ function wp_print_media_templates() {
<# if ( 'image' === data.type && ! data.uploading && data.sizes && data.can.save ) { #> + <# } else if ( 'pdf' === data.subtype && data.sizes ) { #> + <# } #>
@@ -454,6 +456,8 @@ function wp_print_media_templates() {
<# if ( data.image && data.image.src && data.image.src !== data.icon ) { #> + <# } else if ( data.sizes && data.sizes.medium ) { #> + <# } else { #> <# } #> @@ -610,16 +614,16 @@ function wp_print_media_templates() { <# } #>> @@ -641,31 +645,31 @@ function wp_print_media_templates() { <# if ( data.model.canEmbed ) { #> <# if ( 'image' === data.type ) { #> <# } #> @@ -718,13 +722,13 @@ function wp_print_media_templates() { @@ -841,16 +845,16 @@ function wp_print_media_templates() {
@@ -859,13 +863,13 @@ function wp_print_media_templates() {
@@ -907,16 +911,16 @@ function wp_print_media_templates() {
@@ -964,21 +968,21 @@ function wp_print_media_templates() {