Skip to content

Commit

Permalink
Navigation: Fix invalid textarea markup (#24641)
Browse files Browse the repository at this point in the history
  • Loading branch information
noisysocks authored Aug 19, 2020
1 parent deec0ae commit 38a8600
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions lib/navigation.php
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ function gutenberg_output_block_menu_item_custom_fields( $item_id, $item ) {
<p class="field-content description description-wide">
<label for="edit-menu-item-content-<?php echo $item_id; ?>">
<?php _e( 'Content', 'gutenberg' ); ?><br />
<textarea readonly name="menu-item-content[<?php echo $item_id; ?>]"><?php echo esc_textarea( trim( $item->content ) ); ?></textarea>
<textarea id="edit-menu-item-content-<?php echo $item_id; ?>" class="widefat" rows="3" cols="20" name="menu-item-content[<?php echo $item_id; ?>]" readonly><?php echo esc_textarea( trim( $item->content ) ); ?></textarea>
</label>
</p>
<?php
Expand Down Expand Up @@ -368,11 +368,6 @@ function gutenberg_add_block_menu_item_styles_to_nav_menus( $hook ) {
.menu-item-block .description:not(.field-content) {
display: none;
}
.menu-item-block textarea {
width: 100%;
min-height: 100px;
}
CSS;
wp_add_inline_style( 'nav-menus', $css );
}
Expand Down

0 comments on commit 38a8600

Please sign in to comment.