Make WordPress Core

Changeset 36985


Ignore:
Timestamp:
03/14/2016 01:38:09 AM (8 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.

Location:
trunk/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/upgrade.php

    r36825 r36985  
    16831683        $wpdb->query( "DELETE FROM $wpdb->options WHERE option_name REGEXP '^[0-9]+_new_email$'" );
    16841684    }
     1685
     1686    // Remove unused user setting for wpLink.
     1687    delete_user_setting( 'wplink' );
    16851688}
    16861689
  • 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>
  • trunk/src/wp-includes/css/editor.css

    r36904 r36985  
    14701470
    14711471#wp-link label input[type="text"] {
    1472     margin: 5px 0 0;
     1472    margin: 8px 0 0;
    14731473    width: 70%;
    14741474}
Note: See TracChangeset for help on using the changeset viewer.