WordPress.org

Make WordPress Core

Opened 3 years ago

Closed 3 years ago

#11787 closed defect (bug) (fixed)

search by blog id under ms-sites.php uses the wrong parameter

Reported by: Denis-de-Bernardy Owned by:
Priority: normal Milestone: 3.0
Component: Multisite Version: 3.0
Severity: normal Keywords: has-patch multisite commit
Cc:

Description

it's using intval of the search string instead of the blog id.

Attachments (1)

11787.diff (621 bytes) - added by Denis-de-Bernardy 3 years ago.

Download all attachments as: .zip

Change History (4)

Denis-de-Bernardy3 years ago

comment:1 Denis-de-Bernardy3 years ago

the case for non-numerical data is not covered in the above patch, and can lead to a division by zero further down if used because of ceil($total / $num).

comment:2 Denis-de-Bernardy3 years ago

  • Keywords commit added

that second remark was for #11786.

this one can go straight in.

comment:3 ryan3 years ago

  • Resolution set to fixed
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.