WordPress.org

Make WordPress Core


Ignore:
Timestamp:
10/28/2010 09:56:43 PM (9 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-comments.php

    r15969 r16061  
    202202            ?>
    203203            </select>
    204             <input type="submit" id="post-query-submit" value="<?php esc_attr_e( 'Filter' ); ?>" class="button-secondary" />
    205204<?php
     205            submit_button( __( 'Filter' ), 'secondary', 'post-query-submit', false );
    206206        }
    207207
     
    209209            wp_nonce_field( 'bulk-destroy', '_destroy_nonce' );
    210210            $title = ( 'spam' == $comment_status ) ? esc_attr__( 'Empty Spam' ) : esc_attr__( 'Empty Trash' );
    211 ?>
    212             <input type="submit" name="delete_all" id="delete_all" value="<?php echo $title ?>" class="button-secondary apply" />
    213 <?php
    214         }
    215 ?>
    216 <?php
     211            submit_button( $title, 'button-secondary apply', 'delete_all', false );
     212        }
    217213        do_action( 'manage_comments_nav', $comment_status );
    218214        echo '</div>';
Note: See TracChangeset for help on using the changeset viewer.