Make WordPress Core

Opened 5 years ago

Last modified 5 years ago

#47237 new enhancement

Used different escape function on options-media.php

Reported by: dilipbheda's profile dilipbheda Owned by:
Milestone: Awaiting Review Priority: normal
Severity: trivial Version:
Component: Media Keywords: has-patch
Focuses: administration Cc:


I have checked the options-media.php file and found two different escape function.


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)

47237.patch (1.3 KB) - added by dilipbheda 5 years ago.

Download all attachments as: .zip

Change History (2)

5 years ago

#1 @swissspidy
5 years ago

  • Focuses docs coding-standards removed
  • Severity changed from normal to trivial
  • Type changed from defect (bug) to enhancement
  • Version trunk deleted

Changing to trivial enhancement as it's not really a bug and form_option() is not used that often in core.

Note: See TracTickets for help on using tickets.