WordPress.org

Make WordPress Core


Ignore:
Timestamp:
03/14/2016 01:38:09 AM (6 years ago)
Author:
azaozz
Message:

TinyMCE, inline link:

  • Remove unused user setting for wpLink.
  • Remove redundant text and variable from wp_link_dialog().

Props afercia, azaozz.
See #33301.

File:
1 edited

Legend:

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

    r36761 r36985  
    14011401     */
    14021402    public static function wp_link_dialog() {
    1403         $search_panel_visible = '1' == get_user_setting( 'wplink', '0' ) ? ' search-panel-visible' : '';
    1404 
    14051403        // display: none is required here, see #WP27605
    14061404        ?>
    14071405        <div id="wp-link-backdrop" style="display: none"></div>
    1408         <div id="wp-link-wrap" class="wp-core-ui<?php echo $search_panel_visible; ?>" style="display: none">
     1406        <div id="wp-link-wrap" class="wp-core-ui" style="display: none">
    14091407        <form id="wp-link" tabindex="-1">
    14101408        <?php wp_nonce_field( 'internal-linking', '_ajax_linking_nonce', false ); ?>
     
    14151413        <div id="link-selector">
    14161414            <div id="link-options">
    1417                 <p class="howto"><?php _e( 'Enter the destination URL' ); ?></p>
    14181415                <div>
    14191416                    <label><span><?php _e( 'URL' ); ?></span>
     
    14251422                </div>
    14261423                <div class="link-target">
    1427                     <label><span>&nbsp;</span><input type="checkbox" id="wp-link-target" /> <?php _e( 'Open link in a new tab' ); ?></label>
     1424                    <label><span>&nbsp;</span>
     1425                    <input type="checkbox" id="wp-link-target" /> <?php _e( 'Open link in a new tab' ); ?></label>
    14281426                </div>
    14291427            </div>
Note: See TracChangeset for help on using the changeset viewer.