Make WordPress Core

Opened 2 years ago

Closed 2 years ago

#55068 closed defect (bug) (fixed)

Typo in is_post_status_viewable() DocBlock

Reported by: rafiahmedd's profile rafiahmedd Owned by: sergeybiryukov's profile SergeyBiryukov
Milestone: 6.0 Priority: normal
Severity: normal Version: 5.9
Component: Posts, Post Types Keywords: has-patch
Focuses: docs Cc:


I think there are some small typos in the wp-includes/post.php file.

Attachments (1)

55068.diff (2.2 KB) - added by rafiahmedd 2 years ago.
Here I fixed these typos

Download all attachments as: .zip

Change History (5)

2 years ago

Here I fixed these typos

#1 @rafiahmedd
2 years ago

  • Keywords has-patch added

#2 @SergeyBiryukov
2 years ago

  • Milestone changed from Awaiting Review to 6.0

Hi there, welcome to WordPress Trac! Thanks for the ticket.

As far as I know, both "falsey" and "falsy" are acceptable. As noted here, for example: Is it "falsy" or "falsey"?

Falsey is a perfectly acceptable alternative and gives me just as many search results. The word is unfortunately too new to provide good sources.

These were previously standardized on "falsey" in [48275] / #49572 for consistency, because WordPress core appeared to have more instances of "falsey" than "falsy".

The other change looks good, thanks!

#3 @SergeyBiryukov
2 years ago

  • Summary changed from Typo in doc block to Typo in is_post_status_viewable() DocBlock

#4 @SergeyBiryukov
2 years ago

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

In 52670:

Docs: Fix typo in the is_post_status_viewable() function description.

Follow-up to [50130].

Props rafiahmedd.
Fixes #55068.

Note: See TracTickets for help on using tickets.