Make WordPress Core


Ignore:
Timestamp:
05/15/2010 08:36:49 PM (16 years ago)
Author:
nacin
Message:

More validation fixes. Escape some preview=true URLs, also clean up tags in edit-attachment-rows. Slight CSS tweak to match presentation to the formerly invalid HTML. props zeo, see #13383.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/edit-attachment-rows.php

    r13601 r14673  
    8585        case 'media':
    8686                ?>
    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 &#8220;%s&#8221;'), $att_title)); ?>"><?php echo $att_title; ?></a><?php } ?></strong><br />
     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 &#8220;%s&#8221;'), $att_title)); ?>"><?php echo $att_title; ?></a><?php } ?></strong>
     88                <p>
    8889                <?php
    8990                if ( preg_match( '/^.*?\.(\w+)$/', get_attached_file( $post->ID ), $matches ) )
     
    9293                        echo strtoupper( str_replace( 'image/', '', get_post_mime_type() ) );
    9394                ?>
    94                 <p>
     95                </p>
    9596                <?php
    9697                $actions = array();
     
    121122                }
    122123                echo '</div>';
    123                 ?></p></td>
     124                ?></td>
    124125                <?php
    125126                break;
Note: See TracChangeset for help on using the changeset viewer.