Make WordPress Core

Ticket #21847: 21847.3.patch

File 21847.3.patch, 3.7 KB (added by ocean90, 12 years ago)
  • wp-admin/includes/template.php

     
    492492        $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']}' />";
    493493
    494494        $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 );
    496496        $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 );
    498498        $r .= "</div>";
    499499        $r .= wp_nonce_field( 'change-meta', '_ajax_nonce', false, false );
    500500        $r .= "</td>";
     
    554554<td><textarea id="metavalue" name="metavalue" rows="2" cols="25"></textarea></td>
    555555</tr>
    556556
    557 <tr><td colspan="2" class="submit">
     557<tr><td colspan="2">
     558<div class="submit">
    558559<?php submit_button( __( 'Add Custom Field' ), 'add:the-list:newmeta secondary', 'addmeta', false, array( 'id' => 'newmeta-submit' ) ); ?>
     560</div>
    559561<?php wp_nonce_field( 'add-meta', '_ajax_nonce-add-meta', false ); ?>
    560562</td></tr>
    561563</tbody>
     
    16491651 */
    16501652function get_submit_button( $text = null, $type = 'primary', $name = 'submit', $wrap = true, $other_attributes = null ) {
    16511653        if ( ! is_array( $type ) )
    1652                 $type = explode( ' ', $type ); 
     1654                $type = explode( ' ', $type );
    16531655
    16541656        $button_shorthand = array( 'primary', 'small', 'large' );
    16551657        $classes = array( 'button' );
  • wp-admin/css/wp-admin.css

     
    31663166  11.1 - Custom Fields
    31673167------------------------------------------------------------------------------*/
    31683168
    3169 #postcustomstuff .updatemeta,
    3170 #postcustomstuff .deletemeta {
    3171         margin: auto;
    3172 }
    3173 
    31743169#postcustomstuff thead th {
    31753170        padding: 5px 8px 8px;
    31763171}
     
    31783173#postcustom #postcustomstuff .submit {
    31793174        border: 0 none;
    31803175        float: none;
    3181         padding: 0 0 8px 8px;
     3176        padding: 0 0 8px 0;
    31823177}
    31833178
    31843179#side-sortables #postcustom #postcustomstuff .submit {
    3185         padding: 0 5px;
     3180        padding: 0;
    31863181}
    31873182
    31883183#side-sortables #postcustom #postcustomstuff td.left input {
     
    32023197        border-spacing: 0;
    32033198}
    32043199
     3200#postcustomstuff tr {
     3201        vertical-align: top;
     3202}
     3203
    32053204#postcustomstuff table input,
    32063205#postcustomstuff table select,
    32073206#postcustomstuff table textarea {
    3208         width: 95%;
     3207        width: 97%;
    32093208        margin: 8px 0 8px 8px;
    32103209}
    32113210
     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
    32123221#postcustomstuff th.left,
    32133222#postcustomstuff td.left {
    32143223        width: 38%;
    32153224}
    32163225
    3217 #postcustomstuff .submit input,
    3218 #postcustomstuff table #newmeta-submit {
     3226#postcustomstuff .submit input {
    32193227        width: auto;
    32203228}
    32213229
     
    32243232}
    32253233
    32263234#postcustomstuff #newmetaleft a {
    3227         padding: 0 10px;
     3235        display: inline-block;
     3236        margin: 0 8px;
    32283237        text-decoration: none;
    32293238}
    32303239