Ticket #13383: 13383-dont-wrap-div-with-p-tags.diff
File 13383-dont-wrap-div-with-p-tags.diff, 1.0 KB (added by , 14 years ago) |
---|
-
wp-admin/edit-attachment-rows.php
85 85 case 'media': 86 86 ?> 87 87 <td <?php echo $attributes ?>><strong><?php if ( $is_trash ) echo $att_title; else { ?><a href="<?php echo get_edit_post_link( $post->ID, true ); ?>" title="<?php echo esc_attr(sprintf(__('Edit “%s”'), $att_title)); ?>"><?php echo $att_title; ?></a><?php } ?></strong><br /> 88 <p> 88 89 <?php 89 90 if ( preg_match( '/^.*?\.(\w+)$/', get_attached_file( $post->ID ), $matches ) ) 90 91 echo esc_html( strtoupper( $matches[1] ) ); 91 92 else 92 93 echo strtoupper( str_replace( 'image/', '', get_post_mime_type() ) ); 93 94 ?> 94 < p>95 </p> 95 96 <?php 96 97 $actions = array(); 97 98 if ( current_user_can('edit_post', $post->ID) && !$is_trash ) … … 120 121 echo "<span class='$action'>$link$sep</span>"; 121 122 } 122 123 echo '</div>'; 123 ?></ p></td>124 ?></td> 124 125 <?php 125 126 break; 126 127