Ticket #21847: 21847.3.patch
File 21847.3.patch, 3.7 KB (added by , 12 years ago) |
---|
-
wp-admin/includes/template.php
492 492 $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']}' />"; 493 493 494 494 $r .= "\n\t\t<div class='submit'>"; 495 $r .= get_submit_button( __( 'Delete' ), "delete:the-list:meta-{$entry['meta_id']}::_ajax_nonce=$delete_nonce deletemeta ", "deletemeta[{$entry['meta_id']}]", false );495 $r .= get_submit_button( __( 'Delete' ), "delete:the-list:meta-{$entry['meta_id']}::_ajax_nonce=$delete_nonce deletemeta small", "deletemeta[{$entry['meta_id']}]", false ); 496 496 $r .= "\n\t\t"; 497 $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 );497 $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 ); 498 498 $r .= "</div>"; 499 499 $r .= wp_nonce_field( 'change-meta', '_ajax_nonce', false, false ); 500 500 $r .= "</td>"; … … 554 554 <td><textarea id="metavalue" name="metavalue" rows="2" cols="25"></textarea></td> 555 555 </tr> 556 556 557 <tr><td colspan="2" class="submit"> 557 <tr><td colspan="2"> 558 <div class="submit"> 558 559 <?php submit_button( __( 'Add Custom Field' ), 'add:the-list:newmeta secondary', 'addmeta', false, array( 'id' => 'newmeta-submit' ) ); ?> 560 </div> 559 561 <?php wp_nonce_field( 'add-meta', '_ajax_nonce-add-meta', false ); ?> 560 562 </td></tr> 561 563 </tbody> … … 1649 1651 */ 1650 1652 function get_submit_button( $text = null, $type = 'primary', $name = 'submit', $wrap = true, $other_attributes = null ) { 1651 1653 if ( ! is_array( $type ) ) 1652 $type = explode( ' ', $type ); 1654 $type = explode( ' ', $type ); 1653 1655 1654 1656 $button_shorthand = array( 'primary', 'small', 'large' ); 1655 1657 $classes = array( 'button' ); -
wp-admin/css/wp-admin.css
3166 3166 11.1 - Custom Fields 3167 3167 ------------------------------------------------------------------------------*/ 3168 3168 3169 #postcustomstuff .updatemeta,3170 #postcustomstuff .deletemeta {3171 margin: auto;3172 }3173 3174 3169 #postcustomstuff thead th { 3175 3170 padding: 5px 8px 8px; 3176 3171 } … … 3178 3173 #postcustom #postcustomstuff .submit { 3179 3174 border: 0 none; 3180 3175 float: none; 3181 padding: 0 0 8px 8px;3176 padding: 0 0 8px 0; 3182 3177 } 3183 3178 3184 3179 #side-sortables #postcustom #postcustomstuff .submit { 3185 padding: 0 5px;3180 padding: 0; 3186 3181 } 3187 3182 3188 3183 #side-sortables #postcustom #postcustomstuff td.left input { … … 3202 3197 border-spacing: 0; 3203 3198 } 3204 3199 3200 #postcustomstuff tr { 3201 vertical-align: top; 3202 } 3203 3205 3204 #postcustomstuff table input, 3206 3205 #postcustomstuff table select, 3207 3206 #postcustomstuff table textarea { 3208 width: 9 5%;3207 width: 97%; 3209 3208 margin: 8px 0 8px 8px; 3210 3209 } 3211 3210 3211 #side-sortables #postcustomstuff table input, 3212 #side-sortables #postcustomstuff table select, 3213 #side-sortables #postcustomstuff table textarea { 3214 margin: 8px 0 8px 3px; 3215 } 3216 3217 #postcustomstuff td.left .submit input { 3218 margin-top: 0; 3219 } 3220 3212 3221 #postcustomstuff th.left, 3213 3222 #postcustomstuff td.left { 3214 3223 width: 38%; 3215 3224 } 3216 3225 3217 #postcustomstuff .submit input, 3218 #postcustomstuff table #newmeta-submit { 3226 #postcustomstuff .submit input { 3219 3227 width: auto; 3220 3228 } 3221 3229 … … 3224 3232 } 3225 3233 3226 3234 #postcustomstuff #newmetaleft a { 3227 padding: 0 10px; 3235 display: inline-block; 3236 margin: 0 8px; 3228 3237 text-decoration: none; 3229 3238 } 3230 3239