Make WordPress Core

Changeset 18207


Ignore:
Timestamp:
06/08/2011 10:39:08 PM (13 years ago)
Author:
azaozz
Message:

Enable autocomplete on the href and title fields in the link popup, props nacin, fixes #17101
Remove unneeded for=".." attributes from the <label> tags there.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/internal-linking.php

    r17340 r18207  
    7777        <p class="howto"><?php _e( 'Enter the destination URL' ); ?></p>
    7878        <div>
    79             <label for="url-field"><span><?php _e( 'URL' ); ?></span><input id="url-field" type="text" tabindex="10" autocomplete="off" /></label>
     79            <label><span><?php _e( 'URL' ); ?></span><input id="url-field" type="text" tabindex="10" name="href" /></label>
    8080        </div>
    8181        <div>
    82             <label for="link-title-field"><span><?php _e( 'Title' ); ?></span><input id="link-title-field" type="text" tabindex="20" autocomplete="off" /></label>
     82            <label><span><?php _e( 'Title' ); ?></span><input id="link-title-field" type="text" tabindex="20" name="linktitle" /></label>
    8383        </div>
    8484        <div class="link-target">
    85             <label for="link-target-checkbox"><input type="checkbox" id="link-target-checkbox" tabindex="30" /> <?php _e( 'Open link in a new window/tab' ); ?></label>
     85            <label><input type="checkbox" id="link-target-checkbox" tabindex="30" /> <?php _e( 'Open link in a new window/tab' ); ?></label>
    8686        </div>
    8787    </div>
     
    9090    <div id="search-panel"<?php if ( ! $show_internal ) echo ' style="display:none"'; ?>>
    9191        <div class="link-search-wrapper">
    92             <label for="search-field">
     92            <label>
    9393                <span><?php _e( 'Search' ); ?></span>
    9494                <input type="text" id="search-field" class="link-search-field" tabindex="60" autocomplete="off" />
Note: See TracChangeset for help on using the changeset viewer.