Opened 8 years ago
Last modified 8 years ago
#40786 reopened defect (bug)
Leading spaces are added to custom textarea metabox
Reported by: | subrataemfluence | Owned by: | |
---|---|---|---|
Milestone: | Awaiting Review | Priority: | normal |
Severity: | normal | Version: | 4.7.5 |
Component: | Posts, Post Types | Keywords: | |
Focuses: | administration | Cc: |
Description
I am using esc_atr(ltrim(rtrim(br2nl($meta_value))))
to place the value of post meta in textarea metabox I have created in my custom post type.
<textarea id="<?php echo $id_name; ?>" name="<?php echo $id_name; ?>" rows="7" cols="80" style="width:100%" maxlength="<?php echo $maxlength; ?>" placeholder="<?php echo $placeholder_text; ?>" <?php if($is_required){ ?>required<?php } ?>> <?php echo esc_attr(ltrim( rtrim( br2nl($input_value)) ) ); ?> </textarea>
But whenever I go to edit the post, inside all textarea metaboxes values are pre-loaded with leading spaces (exactly 10 spaces) and additional line breaks!
Also tried esc_atr(trim(br2nl($meta_value)))
with no avail.
Attachments (1)
Change History (4)
#1
@
8 years ago
- Resolution set to invalid
- Status changed from new to closed
Hello @subrataemfluence,
Sorry for the trouble you currently have but this Trac is only used for enhancements and bug reporting for the WordPress core software.
Our support forums are a better place to get help with your issue: http://wordpress.org/support
Note: See
TracTickets for help on using
tickets.
Leading spaces and extra line breaks