mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 12:20:22 +00:00
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. git-svn-id: https://develop.svn.wordpress.org/trunk@22723 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1278,18 +1278,8 @@ function find_posts_div($found_action = '') {
|
||||
<?php wp_nonce_field( 'find-posts', '_ajax_nonce', false ); ?>
|
||||
<label class="screen-reader-text" for="find-posts-input"><?php _e( 'Search' ); ?></label>
|
||||
<input type="text" id="find-posts-input" name="ps" value="" />
|
||||
<input type="button" id="find-posts-search" value="<?php esc_attr_e( 'Search' ); ?>" class="button" /><br />
|
||||
|
||||
<?php
|
||||
$post_types = get_post_types( array('public' => true), 'objects' );
|
||||
foreach ( $post_types as $post ) {
|
||||
if ( 'attachment' == $post->name )
|
||||
continue;
|
||||
?>
|
||||
<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'); ?> />
|
||||
<label for="find-posts-<?php echo esc_attr($post->name); ?>"><?php echo $post->label; ?></label>
|
||||
<?php
|
||||
} ?>
|
||||
<span class="spinner"></span>
|
||||
<input type="button" id="find-posts-search" value="<?php esc_attr_e( 'Search' ); ?>" class="button" />
|
||||
</div>
|
||||
<div id="find-posts-response"></div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user