Opened 7 years ago
Last modified 7 years ago
#47237 new enhancement
Used different escape function on options-media.php
| Reported by: | dilipbheda | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | Awaiting Review |
| Component: | Media | Version: | |
| Severity: | trivial | Keywords: | has-patch |
| Cc: | Focuses: | administration |
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Changing to trivial enhancement as it's not really a bug and
form_option()is not used that often in core.