Make WordPress Core


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

    r16003 r16061  
    224224            }
    225225            do_action( 'restrict_manage_posts' );
     226            submit_button( __( 'Filter' ), 'secondary', 'post-query-submit', false );
    226227?>
    227             <input type="submit" id="post-query-submit" value="<?php esc_attr_e( 'Filter' ); ?>" class="button-secondary" />
    228228        </div>
    229229<?php
     
    231231
    232232        if ( $this->is_trash && current_user_can( $post_type_object->cap->edit_others_posts ) ) {
    233 ?>
    234         <input type="submit" name="delete_all" id="delete_all" value="<?php esc_attr_e( 'Empty Trash' ); ?>" class="button-secondary apply" />
    235 <?php
     233            submit_button( __( 'Empty Trash' ), 'button-secondary apply', 'delete_all', false );
    236234        }
    237235    }
     
    986984                <img class="waiting" style="display:none;" src="<?php echo esc_url( admin_url( 'images/wpspin_light.gif' ) ); ?>" alt="" />
    987985            <?php } else {
    988                 $update_text = __( 'Update' );
    989             ?>
    990                 <input accesskey="s" class="button-primary alignright" type="submit" name="bulk_edit" value="<?php echo esc_attr( $update_text ); ?>" />
    991             <?php } ?>
     986                submit_button( __( 'Update' ), 'button-primary alignright', 'bulk_edit', false, array( 'accesskey' => 's' ) );
     987            } ?>
    992988            <input type="hidden" name="post_view" value="<?php echo esc_attr( $m ); ?>" />
    993989            <input type="hidden" name="screen" value="<?php echo esc_attr( $screen->id ); ?>" />
Note: See TracChangeset for help on using the changeset viewer.