WordPress.org

Make WordPress Core

Ticket #8545: 8545.diff

File 8545.diff, 2.1 KB (added by MattyRob, 5 years ago)
  • includes/media.php

     
    11991199 
    12001200        $delete_href = wp_nonce_url("post.php?action=trash&post=$attachment_id", 'trash-post_' . $attachment_id); 
    12011201        if ( $send ) 
    1202                 $send = "<input type='submit' class='button' name='send[$attachment_id]' value='" . esc_attr__( 'Insert into Post' ) . "' />"; 
     1202                $send = "<input type='submit' class='primary_button' name='send[$attachment_id]' value='" . esc_attr__( 'Insert into Post' ) . "' />"; 
    12031203        if ( $delete ) 
    12041204                $delete = current_user_can('delete_post', $attachment_id) ? "<a href=\"$delete_href\" id=\"del[$attachment_id]\" class=\"delete\">" . __('Move to Trash') . "</a>" : ""; 
    12051205        if ( ( $send || $delete ) && !isset($form_fields['buttons']) ) 
     
    13401340SWFUpload.onload = function() { 
    13411341        var settings = { 
    13421342                        button_text: '<span class="button"><?php _e('Select Files'); ?></span>', 
    1343                         button_text_style: '.button { text-align: center; font-weight: bold; font-family:"Lucida Grande",Verdana,Arial,"Bitstream Vera Sans",sans-serif; }', 
     1343                        button_text_style: '.button { color: #FFFFFF; text-align: center; font-weight: bold; font-family:"Lucida Grande",Verdana,Arial,"Bitstream Vera Sans",sans-serif; }', 
    13441344                        button_height: "24", 
    13451345                        button_width: "132", 
    13461346                        button_text_top_padding: 2, 
     
    13991399<?php do_action('pre-html-upload-ui'); ?> 
    14001400        <p id="async-upload-wrap"> 
    14011401        <label class="screen-reader-text" for="async-upload"><?php _e('Upload'); ?></label> 
    1402         <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="return top.tb_remove();"><?php _e('Cancel'); ?></a> 
     1402        <input type="file" name="async-upload" id="async-upload" /> <input type="submit" class="button-primary" name="html-upload" value="<?php esc_attr_e('Upload'); ?>" /> <a href="#" onclick="return top.tb_remove();"><?php _e('Cancel'); ?></a> 
    14031403        </p> 
    14041404        <div class="clear"></div> 
    14051405        <?php if ( is_lighttpd_before_150() ): ?>