Ticket #21847: 21847.2.patch
File 21847.2.patch, 2.8 KB (added by , 13 years ago) |
---|
-
wp-admin/css/wp-admin.css
3155 3163 11.1 - Custom Fields 3156 3164 ------------------------------------------------------------------------------*/ 3157 3165 3158 #postcustomstuff .updatemeta,3159 #postcustomstuff .deletemeta {3160 margin: auto;3161 }3162 3163 3166 #postcustomstuff thead th { 3164 3167 padding: 5px 8px 8px; 3165 3168 } … … 3191 3194 border-spacing: 0; 3192 3195 } 3193 3196 3197 #postcustomstuff tr { 3198 vertical-align: top; 3199 } 3200 3194 3201 #postcustomstuff table input, 3195 3202 #postcustomstuff table select, 3196 3203 #postcustomstuff table textarea { … … 3203 3210 width: 38%; 3204 3211 } 3205 3212 3206 #postcustomstuff .submit input ,3207 #postcustomstuff table #newmeta-submit { 3213 #postcustomstuff .submit input { 3214 margin: auto; 3208 3215 width: auto; 3209 3216 } 3210 3217 3211 #postcustomstuff #newmetaleft {3212 vertical-align: top;3213 }3214 3215 3218 #postcustomstuff #newmetaleft a { 3216 padding: 0 10px; 3219 display: inline-block; 3220 margin: 0 8px; 3217 3221 text-decoration: none; 3218 3222 } 3219 3223 -
wp-admin/includes/template.php
491 491 $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']}' />"; 492 492 493 493 $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 ); 495 495 $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 ); 497 497 $r .= "</div>"; 498 498 $r .= wp_nonce_field( 'change-meta', '_ajax_nonce', false, false ); 499 499 $r .= "</td>"; … … 553 553 <td><textarea id="metavalue" name="metavalue" rows="2" cols="25"></textarea></td> 554 554 </tr> 555 555 556 <tr><td colspan="2" class="submit"> 556 <tr><td colspan="2"> 557 <div class="submit"> 557 558 <?php submit_button( __( 'Add Custom Field' ), 'add:the-list:newmeta secondary', 'addmeta', false, array( 'id' => 'newmeta-submit' ) ); ?> 559 </div> 558 560 <?php wp_nonce_field( 'add-meta', '_ajax_nonce-add-meta', false ); ?> 559 561 </td></tr> 560 562 </tbody>