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/media.php

    r16008 r16061  
    9292<form method="post" action="" class="media-upload-form" id="media-single-form">
    9393<p class="submit" style="padding-bottom: 0;">
    94 <input type="submit" class="button-primary" name="save" value="<?php esc_attr_e('Update Media'); ?>" />
     94<?php submit_button( __( 'Update Media' ), 'primary', 'save', false ); ?>
    9595</p>
    9696
     
    101101</div>
    102102
    103 <?php submit_button( __('Update Media') ); ?>
     103<?php submit_button( __( 'Update Media' ), 'primary', 'save' ); ?>
    104104<input type="hidden" name="post_id" id="post_id" value="<?php echo isset($post_id) ? esc_attr($post_id) : ''; ?>" />
    105105<input type="hidden" name="attachment_id" id="attachment_id" value="<?php echo esc_attr($att_id); ?>" />
Note: See TracChangeset for help on using the changeset viewer.