Skip to content

Commit

Permalink
Widgets: Add missing wp-editor-area CSS class for textarea in the…
Browse files Browse the repository at this point in the history
… TinyMCE-extended Text widget to ensure proper styles are applied.

Removes extra border around TinyMCE-wrapped `textarea` and removes gap at bottom due to lack of `display:block`.

Props johnjamesjacoby, westonruter.
See #35243.
Fixes #40755.

Built from https://develop.svn.wordpress.org/trunk@40675


git-svn-id: http://core.svn.wordpress.org/trunk@40538 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information
westonruter committed May 16, 2017
1 parent 5e67d6d commit 7f008a2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion wp-includes/version.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.8-beta1-40674';
$wp_version = '4.8-beta1-40675';

/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
Expand Down
2 changes: 1 addition & 1 deletion wp-includes/widgets/class-wp-widget-text.php
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ public function render_control_template_scripts() {
</p>
<p>
<label for="{{ elementIdPrefix }}text" class="screen-reader-text"><?php esc_html_e( 'Content:' ); ?></label>
<textarea id="{{ elementIdPrefix }}text" class="widefat text" style="height: 200px" rows="16" cols="20"></textarea>
<textarea id="{{ elementIdPrefix }}text" class="widefat text wp-editor-area" style="height: 200px" rows="16" cols="20"></textarea>
</p>
</script>
<?php
Expand Down

0 comments on commit 7f008a2

Please sign in to comment.