Make WordPress Core

Opened 6 years ago

Last modified 6 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:

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 6 years ago.

Download all attachments as: .zip

Change History (2)

@dilipbheda
6 years ago

#1 @swissspidy
6 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.