WordPress.org

Make WordPress Core

Opened 9 months ago

Closed 9 months ago

#40077 closed enhancement (fixed)

calendar_week_mod() has wrong return type in docs

Reported by: dingo_bastard Owned by: SergeyBiryukov
Milestone: 4.8 Priority: normal
Severity: normal Version: 4.7.3
Component: Date/Time Keywords: has-patch
Focuses: docs Cc:

Description

There is a small typo in the entry for calendar_week_mod() function.

The return type is not an integer but a double.

Attachments (2)

40077.patch (418 bytes) - added by dingo_bastard 9 months ago.
Fixed the return type in the docblock
40077.2.patch (562 bytes) - added by dingo_bastard 9 months ago.
Fixed spacing inside the function

Download all attachments as: .zip

Change History (5)

@dingo_bastard
9 months ago

Fixed the return type in the docblock

#1 @dingo_bastard
9 months ago

  • Keywords has-patch added

@dingo_bastard
9 months ago

Fixed spacing inside the function

#2 @SergeyBiryukov
9 months ago

  • Milestone changed from Awaiting Review to 4.8

#3 @SergeyBiryukov
9 months ago

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

In 40254:

Docs: Correct @return type for calendar_week_mod().

Props dingo_bastard.
Fixes #40077.

Note: See TracTickets for help on using tickets.