Make WordPress Core

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)

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

Download all attachments as: .zip

Change History (2)

@dilipbheda
7 years ago

#1 @swissspidy
7 years ago

  • Focuses docs coding-standards removed
  • Severity normaltrivial
  • Type defect (bug)enhancement
  • Version trunk

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.