Changeset 16061 for trunk/wp-admin/includes/media.php
- Timestamp:
- 10/28/2010 09:56:43 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/media.php
r16057 r16061 1219 1219 1220 1220 if ( $send ) 1221 $send = "<input type='submit' class='button' name='send[$attachment_id]' value='" . esc_attr__( 'Insert into Post' ) . "' />";1221 $send = get_submit_button( __( 'Insert into Post' ), 'button', "send[$attachment_id]", false ); 1222 1222 if ( $delete && current_user_can( 'delete_post', $attachment_id ) ) { 1223 1223 if ( !EMPTY_TRASH_DAYS ) { … … 1460 1460 <?php do_action('pre-html-upload-ui'); ?> 1461 1461 <p id="async-upload-wrap"> 1462 <label class="screen-reader-text" for="async-upload"><?php _e('Upload'); ?></label> 1463 <input type="file" name="async-upload" id="async-upload" /> <input type="submit" class="button" name="html-upload" value="<?php esc_attr_e('Upload'); ?>" /> <a href="#" onclick="try{top.tb_remove();}catch(e){}; return false;"><?php _e('Cancel'); ?></a> 1462 <label class="screen-reader-text" for="async-upload"><?php _e('Upload'); ?></label> 1463 <input type="file" name="async-upload" id="async-upload" /> 1464 <?php submit_button( __( 'Upload' ), 'button', 'html-upload', false ); ?> 1465 <a href="#" onclick="try{top.tb_remove();}catch(e){}; return false;"><?php _e('Cancel'); ?></a> 1464 1466 </p> 1465 1467 <div class="clear"></div> … … 1493 1495 1494 1496 <form enctype="multipart/form-data" method="post" action="<?php echo esc_attr($form_action_url); ?>" class="media-upload-form type-form validate" id="<?php echo $type; ?>-form"> 1495 < input type="submit" class="hidden" name="save" value="" />1497 <?php submit_button( '', 'hidden', 'save', false ); ?> 1496 1498 <input type="hidden" name="post_id" id="post_id" value="<?php echo (int) $post_id; ?>" /> 1497 1499 <?php wp_nonce_field('media-form'); ?> … … 1526 1528 </div> 1527 1529 <p class="savebutton ml-submit"> 1528 < input type="submit" class="button" name="save" value="<?php esc_attr_e( 'Save all changes' ); ?>" />1530 <?php submit_button( __( 'Save all changes' ), 'button', 'save', false ); ?> 1529 1531 </p> 1530 1532 </form> … … 1706 1708 1707 1709 <p class="ml-submit"> 1708 < input type="submit" class="button savebutton" style="display:none;" name="save" id="save-all" value="<?php esc_attr_e( 'Save all changes' ); ?>" />1710 <?php submit_button( __( 'Save all changes' ), 'button savebutton', 'save', false, array( 'id' => 'save-all', 'style' => 'display: none;' ) ); ?> 1709 1711 <input type="hidden" name="post_id" id="post_id" value="<?php echo (int) $post_id; ?>" /> 1710 1712 <input type="hidden" name="type" value="<?php echo esc_attr( $GLOBALS['type'] ); ?>" /> … … 1829 1831 <label class="screen-reader-text" for="media-search-input"><?php _e('Search Media');?>:</label> 1830 1832 <input type="text" id="media-search-input" name="s" value="<?php the_search_query(); ?>" /> 1831 < input type="submit" value="<?php esc_attr_e( 'Search Media' ); ?>" class="button" />1833 <?php submit_button( __( 'Search Media' ), 'button', '', false ); ?> 1832 1834 </p> 1833 1835 … … 1916 1918 <?php } ?> 1917 1919 1918 < input type="submit" id="post-query-submit" value="<?php echo esc_attr( __( 'Filter »' ) ); ?>" class="button-secondary" />1920 <?php submit_button( __( 'Filter »' ), 'secondary', 'post-query-submit', false ); ?> 1919 1921 1920 1922 </div> … … 1946 1948 </div> 1947 1949 <p class="ml-submit"> 1948 < input type="submit" class="button savebutton" name="save" value="<?php esc_attr_e( 'Save all changes' ); ?>" />1950 <?php submit_button( __( 'Save all changes' ), 'button savebutton', 'save', false ); ?> 1949 1951 <input type="hidden" name="post_id" id="post_id" value="<?php echo (int) $post_id; ?>" /> 1950 1952 </p> … … 2144 2146 <td></td> 2145 2147 <td> 2146 <input type="submit" class="button" name="insertonlybutton" value="' . esc_attr__('Insert into Post') . '" />2148 ' . get_submit_button( __( 'Insert into Post' ), 'button', 'insertonlybutton', false ) . ' 2147 2149 </td> 2148 2150 </tr>
Note: See TracChangeset
for help on using the changeset viewer.