WordPress.org

Make WordPress Core


Ignore:
Timestamp:
07/31/2014 11:27:14 PM (7 years ago)
Author:
azaozz
Message:

wpLink:

  • Fix adding a link on pressing Enter.
  • Don't auto-focus the URL field after selecting a local link.
  • Don't auto-focus the URL field when opening on touch devices. Toggle focus/blur on it to close the onscreen keyboard so the modal is positioned properly.

See #28897.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-editor.php

    r29321 r29333  
    13771377        <div id="link-modal-title">
    13781378            <?php _e( 'Insert/edit link' ) ?>
    1379             <button id="wp-link-close"><span class="screen-reader-text"><?php _e( 'Close' ); ?></span></button>
     1379            <button type="button" id="wp-link-close"><span class="screen-reader-text"><?php _e( 'Close' ); ?></span></button>
    13801380        </div>
    13811381        <div id="link-selector">
Note: See TracChangeset for help on using the changeset viewer.