Make WordPress Core

Opened 17 months ago

Closed 13 months ago

Last modified 13 months ago

#50569 closed defect (bug) (fixed)

$context parameter description for sanitize_title_with_dashes()

Reported by: stevenlinx Owned by: SergeyBiryukov
Milestone: 5.6 Priority: normal
Severity: normal Version:
Component: Formatting Keywords: has-patch commit
Focuses: docs Cc:


The description for $context should be migrated:
"The context for the sanitation. When set to 'save', additional entities are converted to hyphens or stripped entirely."



Attachments (2)

50569.2.diff (743 bytes) - added by stevenlinx 17 months ago.
50569.3.diff (720 bytes) - added by audrasjb 13 months ago.
Replace "sanitation" with "sanitization" for consistency with core

Download all attachments as: .zip

Change History (8)

17 months ago

#1 @stevenlinx
17 months ago

  • Keywords has-patch added; needs-patch removed

#2 @SergeyBiryukov
16 months ago

  • Milestone changed from Awaiting Review to 5.6
  • Owner set to SergeyBiryukov
  • Status changed from new to reviewing

13 months ago

Replace "sanitation" with "sanitization" for consistency with core

#3 @audrasjb
13 months ago

The previous patch looks like a nice documentation enhancement, except I think we should replace "sanitation" with "sanitization" for better consistency. Fixed in 50569.3.diff.

#4 @hellofromTonya
13 months ago

  • Keywords commit added

Marking for commit.

#5 @helen
13 months ago

  • Resolution set to fixed
  • Status changed from reviewing to closed

In 49482:

Formatting: Update docs for $context in sanitize_title_with_dashes().

Props stevenlinx, audrasjb.
Fixes #50569.

#6 @SergeyBiryukov
13 months ago

In 49484:

Docs: Update description for the $context parameter of sanitize_title() and sanitize_title_with_dashes().

This brings some consistency between the two DocBlocks and adjusts the latter one per the documentation standards.

Follow-up to [49482].

See #50569.

Note: See TracTickets for help on using tickets.