WordPress.org

Make WordPress Core

Opened 6 months ago

Closed 6 months ago

#50147 closed defect (bug) (fixed)

Add missing inline docs information to esc_url_raw

Reported by: audrasjb Owned by: SergeyBiryukov
Milestone: 5.5 Priority: normal
Severity: normal Version:
Component: Formatting Keywords: has-patch
Focuses: docs Cc:

Description (last modified by audrasjb)

In wp-includes/formatting.php, there should be a reference to wp_allowed_protocols under $protocols parameters, in the related inline documentation of esc_url_raw function.

To be consistent, we should probably copy the documentation available for esc_url.

Attachments (1)

50147.diff (575 bytes) - added by audrasjb 6 months ago.
Formatting: add missing inline documentation to esc_url_raw function

Download all attachments as: .zip

Change History (4)

@audrasjb
6 months ago

Formatting: add missing inline documentation to esc_url_raw function

#1 @audrasjb
6 months ago

  • Description modified (diff)

#2 @SergeyBiryukov
6 months ago

  • Milestone changed from Awaiting Review to 5.5

#3 @SergeyBiryukov
6 months ago

  • Owner set to SergeyBiryukov
  • Resolution set to fixed
  • Status changed from new to closed

In 47783:

Docs: Add a note that the $protocols parameter of esc_url_raw() defaults to return value of wp_allowed_protocols().

This complements already existing note in esc_url().

Props audrasjb.
Fixes #50147.

Note: See TracTickets for help on using tickets.