Make WordPress Core


Ignore:
File:
1 edited

Legend:

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

    r18234 r17340  
    1717 */
    1818function wp_link_query( $args = array() ) {
    19     $pts = get_post_types( array( 'public' => true ), 'objects' );
     19    $pts = get_post_types( array( 'publicly_queryable' => true ), 'objects' );
    2020    $pt_names = array_keys( $pts );
    2121
     
    7777        <p class="howto"><?php _e( 'Enter the destination URL' ); ?></p>
    7878        <div>
    79             <label><span><?php _e( 'URL' ); ?></span><input id="url-field" type="text" tabindex="10" name="href" /></label>
     79            <label for="url-field"><span><?php _e( 'URL' ); ?></span><input id="url-field" type="text" tabindex="10" autocomplete="off" /></label>
    8080        </div>
    8181        <div>
    82             <label><span><?php _e( 'Title' ); ?></span><input id="link-title-field" type="text" tabindex="20" name="linktitle" /></label>
     82            <label for="link-title-field"><span><?php _e( 'Title' ); ?></span><input id="link-title-field" type="text" tabindex="20" autocomplete="off" /></label>
    8383        </div>
    8484        <div class="link-target">
    85             <label><input type="checkbox" id="link-target-checkbox" tabindex="30" /> <?php _e( 'Open link in a new window/tab' ); ?></label>
     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>
    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>
     92            <label for="search-field">
    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.