Making WordPress.org

Opened 7 years ago

Closed 7 years ago

Last modified 5 years ago

#2573 closed defect (bug) (invalid)

Developers entry for calendar_week_mod() wrong return type

Reported by: dingo_d's profile dingo_d Owned by:
Milestone: Priority: low
Component: Developer Hub Keywords:
Cc:

Description

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

https://developer.wordpress.org/reference/functions/calendar_week_mod/

The return type is not an integer but a double.

Change History (4)

#1 @netweb
7 years ago

  • Resolution set to invalid
  • Status changed from new to closed

Thanks Denis,

The docs are automatically generated from the source code, if you create a new ticket at core.trac.wordpress.org they'll be updated (most likely) with the next release of WP

See https://core.trac.wordpress.org/browser/tags/4.7/src/wp-includes/general-template.php#L1863

#2 @netweb
7 years ago

p.s. It's a great opportunity to include a patch for that ticket if you've not yet had "props" for WordPress core 😀

#3 @dingo_bastard
7 years ago

I'll do that right away :D Wasn't aware of it. Thanks!

#4 @dd32
5 years ago

  • Reporter changed from dingo_bastard to dingo_d
Note: See TracTickets for help on using tickets.