Make WordPress Core

Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#60870 closed defect (bug) (fixed)

small typo in deprecated.php file

Reported by: shailu25 Owned by: audrasjb
Priority: normal Milestone: 6.6
Component: General Version: 2.3
Severity: trivial Keywords: has-patch commit has-unit-tests
Cc: Focuses: docs

Description

Small typo correction in wp-includes/deprecated.php file inline comments (Line no 2637)

santization It should be sanitization

Attachments (1)

60870.patch​ (544 bytes ) - added by shailu25 3 years ago.
Patch Added

Download all attachments as: .zip

Change History (12)

@shailu25
3 years ago

Patch Added

#1 @shailu25
3 years ago

  • Keywords has-patch added

#2 @mukesh27
3 years ago

  • Keywords commit added
  • Milestone Awaiting Review → 6.6
  • Version → 3.3

Good catch, introduced in [18597] / #15458.

60870.patch​ Look good and ready for commit.

#3 @sabernhardt
3 years ago

  • Version 3.3 → 2.3

The sanitize_user_object() function was deprecated in 3.3, but the function and its description were part of [11929].

#4 @sabernhardt
3 years ago

Also, a similar typo of "santize" is in two unit test names in tests/phpunit/tests/fonts/font-library/wpRestFontFamiliesController.php.

  • test_create_item_santize_font_family_settings()
  • test_update_item_santize_font_family_settings()

This ticket was mentioned in ​PR #6340 on ​WordPress/wordpress-develop by ​@mukesh27.


3 years ago
#5

  • Keywords has-unit-tests added

#6 @mukesh27
3 years ago

Thanks @sabernhardt I have open PR that updates docs for those two functions.

#8 @audrasjb
3 years ago

  • Owner set to audrasjb
  • Status new → accepted

#9 @audrasjb
3 years ago

  • Resolution → fixed
  • Status accepted → closed

In 57909:

General: Fix various typo issues found in deprecated.php and Font Library unit tests.

Props shailu25, mukesh27, sabernhardt, audrasjb.
Fixes #60870.

Note: See TracTickets for help on using tickets.