Make WordPress Core


Ignore:
Timestamp:
11/20/2012 06:50:15 PM (14 years ago)
Author:
nacin
Message:

Fix up the 'Attach' dialog on upload.php.

We are de-emphasising attaching (see [22630]) but this is existing
core functionality and will remain for now. This commit just cleans
it up a bit so as to be less embarrassing.

props lessbloat, helenyhou.
fixes #20164.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/template.php

    r22459 r22723  
    12791279                                <label class="screen-reader-text" for="find-posts-input"><?php _e( 'Search' ); ?></label>
    12801280                                <input type="text" id="find-posts-input" name="ps" value="" />
    1281                                 <input type="button" id="find-posts-search" value="<?php esc_attr_e( 'Search' ); ?>" class="button" /><br />
    1282 
    1283                                 <?php
    1284                                 $post_types = get_post_types( array('public' => true), 'objects' );
    1285                                 foreach ( $post_types as $post ) {
    1286                                         if ( 'attachment' == $post->name )
    1287                                                 continue;
    1288                                 ?>
    1289                                 <input type="radio" name="find-posts-what" id="find-posts-<?php echo esc_attr($post->name); ?>" value="<?php echo esc_attr($post->name); ?>" <?php checked($post->name, 'post'); ?> />
    1290                                 <label for="find-posts-<?php echo esc_attr($post->name); ?>"><?php echo $post->label; ?></label>
    1291                                 <?php
    1292                                 } ?>
     1281                                <span class="spinner"></span>
     1282                                <input type="button" id="find-posts-search" value="<?php esc_attr_e( 'Search' ); ?>" class="button" />
    12931283                        </div>
    12941284                        <div id="find-posts-response"></div>
Note: See TracChangeset for help on using the changeset viewer.