WordPress.org

Make WordPress Core

Ticket #21847: 21847.patch

File 21847.patch, 2.2 KB (added by ocean90, 6 years ago)
  • 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' ), "small delete:the-list:meta-{$entry['meta_id']}::_ajax_nonce=$delete_nonce deletemeta", "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' ), "small add:the-list:meta-{$entry['meta_id']}::_ajax_nonce-add-meta=$update_nonce updatemeta" , "meta-{$entry['meta_id']}-submit", false );
    497497        $r .= "</div>";
    498498        $r .= wp_nonce_field( 'change-meta', '_ajax_nonce', false, false );
    499499        $r .= "</td>";
     
    16381638 */
    16391639function get_submit_button( $text = null, $type = 'primary', $name = 'submit', $wrap = true, $other_attributes = null ) {
    16401640        if ( ! is_array( $type ) )
    1641                 $type = explode( ' ', $type ); 
     1641                $type = explode( ' ', $type );
    16421642
    16431643        $button_shorthand = array( 'primary', 'tiny', 'small', 'large' );
    16441644        $classes = array( 'button' );
  • wp-admin/css/wp-admin.css

     
    31913191        border-spacing: 0;
    31923192}
    31933193
     3194#postcustomstuff tr {
     3195        vertical-align: top;
     3196}
     3197
    31943198#postcustomstuff table input,
    31953199#postcustomstuff table select,
    31963200#postcustomstuff table textarea {
     
    32083212        width: auto;
    32093213}
    32103214
    3211 #postcustomstuff #newmetaleft {
    3212         vertical-align: top;
    3213 }
    3214 
    32153215#postcustomstuff #newmetaleft a {
    32163216        padding: 0 10px;
    32173217        text-decoration: none;