TinyMCE, inline link:

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

Props afercia, azaozz.
See #33301.
Built from https://develop.svn.wordpress.org/trunk@36985


git-svn-id: http://core.svn.wordpress.org/trunk@36952 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrew Ozz 2016-03-14 01:39:26 +00:00
parent cd38787ee7
commit 13c885bdce
7 changed files with 11 additions and 10 deletions

View File

@ -1682,6 +1682,9 @@ function upgrade_450() {
if ( $wp_current_db_version < 36679 && is_multisite() ) {
$wpdb->query( "DELETE FROM $wpdb->options WHERE option_name REGEXP '^[0-9]+_new_email$'" );
}
// Remove unused user setting for wpLink.
delete_user_setting( 'wplink' );
}
/**

View File

@ -1400,12 +1400,10 @@ final class _WP_Editors {
* @static
*/
public static function wp_link_dialog() {
$search_panel_visible = '1' == get_user_setting( 'wplink', '0' ) ? ' search-panel-visible' : '';
// display: none is required here, see #WP27605
?>
<div id="wp-link-backdrop" style="display: none"></div>
<div id="wp-link-wrap" class="wp-core-ui<?php echo $search_panel_visible; ?>" style="display: none">
<div id="wp-link-wrap" class="wp-core-ui" style="display: none">
<form id="wp-link" tabindex="-1">
<?php wp_nonce_field( 'internal-linking', '_ajax_linking_nonce', false ); ?>
<div id="link-modal-title">
@ -1414,7 +1412,6 @@ final class _WP_Editors {
</div>
<div id="link-selector">
<div id="link-options">
<p class="howto"><?php _e( 'Enter the destination URL' ); ?></p>
<div>
<label><span><?php _e( 'URL' ); ?></span>
<input id="wp-link-url" type="text" role="combobox" aria-autocomplete="list" aria-expanded="false" placeholder="<?php _e( 'Paste URL or type to search' ); ?>" /></label>
@ -1424,7 +1421,8 @@ final class _WP_Editors {
<input id="wp-link-text" type="text" /></label>
</div>
<div class="link-target">
<label><span>&nbsp;</span><input type="checkbox" id="wp-link-target" /> <?php _e( 'Open link in a new tab' ); ?></label>
<label><span>&nbsp;</span>
<input type="checkbox" id="wp-link-target" /> <?php _e( 'Open link in a new tab' ); ?></label>
</div>
</div>
</div>

View File

@ -1469,7 +1469,7 @@ i.mce-i-wp_code:before {
}
#wp-link label input[type="text"] {
margin: 5px 0 0;
margin: 8px 0 0;
width: 70%;
}

File diff suppressed because one or more lines are too long

View File

@ -1469,7 +1469,7 @@ i.mce-i-wp_code:before {
}
#wp-link label input[type="text"] {
margin: 5px 0 0;
margin: 8px 0 0;
width: 70%;
}

File diff suppressed because one or more lines are too long

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.5-beta3-36984';
$wp_version = '4.5-beta3-36985';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.