Make WordPress Core


Ignore:
Timestamp:
10/28/2010 09:56:43 PM (14 years ago)
Author:
markjaquith
Message:

Expand submit_button() capabilities. Replace all (or almost all) manual HTML instances in WP. props sbressler. see #15064

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/list-table-media.php

    r16004 r16061  
    9999
    100100            do_action( 'restrict_manage_posts' );
    101 ?>
    102             <input type="submit" id="post-query-submit" value="<?php esc_attr_e( 'Filter' ); ?>" class="button-secondary" />
    103 <?php
    104         }
    105 
    106         if ( $detached ) { ?>
    107             <input type="submit" id="find_detached" name="find_detached" value="<?php esc_attr_e( 'Scan for lost attachments' ); ?>" class="button-secondary" />
    108         <?php } elseif ( $this->is_trash && current_user_can( $post_type_obj->cap->edit_others_posts ) ) { ?>
    109             <input type="submit" id="delete_all" name="delete_all" value="<?php esc_attr_e( 'Empty Trash' ); ?>" class="button-secondary apply" />
    110         <?php } ?>
     101            submit_button( __( 'Filter' ), 'secondary', 'post-query-submit', false );
     102        }
     103
     104        if ( $detached ) {
     105            submit_button( __( 'Scan for lost attachments' ), 'secondary', 'find_detached', false );
     106        } elseif ( $this->is_trash && current_user_can( 'edit_others_posts' ) ) {
     107            submit_button( __( 'Empty Trash' ), 'button-secondary apply', 'delete_all', false );
     108        } ?>
    111109        </div>
    112110<?php
Note: See TracChangeset for help on using the changeset viewer.