WordPress.org

Make WordPress Core

Opened 4 years ago

Closed 4 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:
Milestone: 3.0 Priority: normal
Severity: normal Version: 3.0
Component: Multisite Keywords: has-patch commit
Focuses: multisite 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 4 years ago.

Download all attachments as: .zip

Change History (4)

Denis-de-Bernardy4 years ago

comment:1 Denis-de-Bernardy4 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-Bernardy4 years ago

  • Keywords commit added

that second remark was for #11786.

this one can go straight in.

comment:3 ryan4 years ago

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