Make WordPress Core

Ticket #38677: 38677.patch

File 38677.patch, 1.1 KB (added by Cheffheid, 9 years ago)

Markup/JS update only.

  • wp-admin/includes/class-wp-posts-list-table.php

     
    12301230                                __( 'Edit' )
    12311231                        );
    12321232                        $actions['inline hide-if-no-js'] = sprintf(
    1233                                 '<a href="#" class="editinline" aria-label="%s">%s</a>',
     1233                                '<button class="button-link editinline" aria-label="%s" type="button">%s</button>',
    12341234                                /* translators: %s: post title */
    12351235                                esc_attr( sprintf( __( 'Quick edit &#8220;%s&#8221; inline' ), $title ) ),
    12361236                                __( 'Quick&nbsp;Edit' )
  • wp-admin/js/inline-edit-post.js

     
    4949                });
    5050
    5151                // add events
    52                 $('#the-list').on( 'click', 'a.editinline', function( e ) {
     52                $('#the-list').on( 'click', '.editinline', function( e ) {
    5353                        e.preventDefault();
    5454                        inlineEditPost.edit(this);
    5555                });