WordPress.org

Make WordPress Core

Ticket #21829: 21829.34-branch.patch

File 21829.34-branch.patch, 2.2 KB (added by ocean90, 6 years ago)

Patch for the 3.4 branch.

  • wp-includes/js/wp-lists.dev.js

     
    7878                if ( !s )
    7979                        return false;
    8080
    81                 if ( !e.is('[id="' + s.what + '-add-submit"]') )
     81                if ( !e.is('[id="' + s.element + '-submit"]') )
    8282                        return !wpList.add.call( list, e, s );
    8383
    8484                if ( !s.element )
  • wp-admin/includes/template.php

     
    494494        $r .= "\n\t\t<div class='submit'>";
    495495        $r .= get_submit_button( __( 'Delete' ), "delete:the-list:meta-{$entry['meta_id']}::_ajax_nonce=$delete_nonce deletemeta", "deletemeta[{$entry['meta_id']}]", false, array( 'tabindex' => '6' ) );
    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" , 'updatemeta', false, array( 'tabindex' => '6' ) );
     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, array( 'tabindex' => '6' ) );
    498498        $r .= "</div>";
    499499        $r .= wp_nonce_field( 'change-meta', '_ajax_nonce', false, false );
    500500        $r .= "</td>";
     
    555555</tr>
    556556
    557557<tr><td colspan="2" class="submit">
    558 <?php submit_button( __( 'Add Custom Field' ), 'add:the-list:newmeta', 'addmeta', false, array( 'id' => 'addmetasub', 'tabindex' => '9' ) ); ?>
     558<?php submit_button( __( 'Add Custom Field' ), 'add:the-list:newmeta', 'addmeta', false, array( 'id' => 'newmeta-submit', 'tabindex' => '9' ) ); ?>
    559559<?php wp_nonce_field( 'add-meta', '_ajax_nonce-add-meta', false ); ?>
    560560</td></tr>
    561561</tbody>
  • wp-admin/css/wp-admin.dev.css

     
    32693269}
    32703270
    32713271#postcustomstuff .submit input,
    3272 #postcustomstuff table #addmetasub {
     3272#postcustomstuff table #newmeta-submit {
    32733273        width: auto;
    32743274}
    32753275