Make WordPress Core

Opened 4 years ago

Closed 3 years ago

Last modified 3 years ago

#50569 closed defect (bug) (fixed)

$context parameter description for sanitize_title_with_dashes()

Reported by: stevenlinx's profile stevenlinx Owned by: sergeybiryukov's profile 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 4 years ago.
50569.3.diff (720 bytes) - added by audrasjb 3 years ago.
Replace "sanitation" with "sanitization" for consistency with core

Download all attachments as: .zip

Change History (8)

4 years ago

#1 @stevenlinx
4 years ago

  • Keywords has-patch added; needs-patch removed

#2 @SergeyBiryukov
4 years ago

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

3 years ago

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

#3 @audrasjb
3 years 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
3 years ago

  • Keywords commit added

Marking for commit.

#5 @helen
3 years 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
3 years 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.