Make WordPress Core

Ticket #21847: 21847.2.patch

File 21847.2.patch, 2.8 KB (added by SergeyBiryukov, 13 years ago)
  • wp-admin/css/wp-admin.css

     
    31553163  11.1 - Custom Fields
    31563164------------------------------------------------------------------------------*/
    31573165
    3158 #postcustomstuff .updatemeta,
    3159 #postcustomstuff .deletemeta {
    3160         margin: auto;
    3161 }
    3162 
    31633166#postcustomstuff thead th {
    31643167        padding: 5px 8px 8px;
    31653168}
     
    31913194        border-spacing: 0;
    31923195}
    31933196
     3197#postcustomstuff tr {
     3198        vertical-align: top;
     3199}
     3200
    31943201#postcustomstuff table input,
    31953202#postcustomstuff table select,
    31963203#postcustomstuff table textarea {
     
    32033210        width: 38%;
    32043211}
    32053212
    3206 #postcustomstuff .submit input,
    3207 #postcustomstuff table #newmeta-submit {
     3213#postcustomstuff .submit input {
     3214        margin: auto;
    32083215        width: auto;
    32093216}
    32103217
    3211 #postcustomstuff #newmetaleft {
    3212         vertical-align: top;
    3213 }
    3214 
    32153218#postcustomstuff #newmetaleft a {
    3216         padding: 0 10px;
     3219        display: inline-block;
     3220        margin: 0 8px;
    32173221        text-decoration: none;
    32183222}
    32193223
  • wp-admin/includes/template.php

     
    491491        $r .= "\n\t\t<td class='left'><label class='screen-reader-text' for='meta[{$entry['meta_id']}][key]'>" . __( 'Key' ) . "</label><input name='meta[{$entry['meta_id']}][key]' id='meta[{$entry['meta_id']}][key]' type='text' size='20' value='{$entry['meta_key']}' />";
    492492
    493493        $r .= "\n\t\t<div class='submit'>";
    494         $r .= get_submit_button( __( 'Delete' ), "delete:the-list:meta-{$entry['meta_id']}::_ajax_nonce=$delete_nonce deletemeta", "deletemeta[{$entry['meta_id']}]", false );
     494        $r .= get_submit_button( __( 'Delete' ), "delete:the-list:meta-{$entry['meta_id']}::_ajax_nonce=$delete_nonce deletemeta small", "deletemeta[{$entry['meta_id']}]", false );
    495495        $r .= "\n\t\t";
    496         $r .= get_submit_button( __( 'Update' ), "add:the-list:meta-{$entry['meta_id']}::_ajax_nonce-add-meta=$update_nonce updatemeta" , "meta-{$entry['meta_id']}-submit", false );
     496        $r .= get_submit_button( __( 'Update' ), "add:the-list:meta-{$entry['meta_id']}::_ajax_nonce-add-meta=$update_nonce updatemeta small" , "meta-{$entry['meta_id']}-submit", false );
    497497        $r .= "</div>";
    498498        $r .= wp_nonce_field( 'change-meta', '_ajax_nonce', false, false );
    499499        $r .= "</td>";
     
    553553<td><textarea id="metavalue" name="metavalue" rows="2" cols="25"></textarea></td>
    554554</tr>
    555555
    556 <tr><td colspan="2" class="submit">
     556<tr><td colspan="2">
     557<div class="submit">
    557558<?php submit_button( __( 'Add Custom Field' ), 'add:the-list:newmeta secondary', 'addmeta', false, array( 'id' => 'newmeta-submit' ) ); ?>
     559</div>
    558560<?php wp_nonce_field( 'add-meta', '_ajax_nonce-add-meta', false ); ?>
    559561</td></tr>
    560562</tbody>