WordPress.org

Make WordPress Core

Opened 4 years ago

Closed 4 years ago

#15089 closed defect (bug) (maybelater)

wp_rand() can be asked for negative numbers but will never return them

Reported by: hakre Owned by:
Milestone: Priority: lowest
Severity: trivial Version: 3.0
Component: Inline Docs Keywords:
Focuses: Cc:

Description

wp_rand() has a min and a max parameter to address a wish which number to get back.

Unfourtionatly the function is unable to handle negative numbers w/o having this documented.

Change History (2)

comment:1 @hakre4 years ago

Related: #15090

comment:2 @westi4 years ago

  • Component changed from General to Inline Docs
  • Milestone Awaiting Review deleted
  • Priority changed from normal to lowest
  • Resolution set to maybe later
  • Severity changed from normal to trivial
  • Status changed from new to closed

No patch and no traction closing for now.

Note: See TracTickets for help on using tickets.