Opened 6 years ago
Last modified 6 years ago
#47237 new enhancement
Used different escape function on options-media.php
Reported by: | dilipbheda | Owned by: | |
---|---|---|---|
Milestone: | Awaiting Review | Priority: | normal |
Severity: | trivial | Version: | |
Component: | Media | Keywords: | has-patch |
Focuses: | administration | Cc: |
Description
I have checked the options-media.php file and found two different escape function.
Example:
1) <input name="upload_path" type="text" id="upload_path" value="<?php echo esc_attr( get_option( 'upload_path' ) ); ?>" class="regular-text code" /> 2) <input name="thumbnail_size_w" type="number" step="1" min="0" id="thumbnail_size_w" value="<?php form_option( 'thumbnail_size_w' ); ?>" class="small-text" />
Attachments (1)
Change History (2)
Note: See
TracTickets for help on using
tickets.
Changing to trivial enhancement as it's not really a bug and
form_option()
is not used that often in core.