WordPress.org

Make WordPress Core

Opened 3 years ago

Closed 3 years ago

#17344 closed defect (bug) (fixed)

MS Function - remove_user_from_blog returns null

Reported by: eightamrock Owned by: Sam Napolitano
Milestone: 3.3 Priority: normal
Severity: minor Version: 3.1
Component: Multisite Keywords: has-patch
Focuses: Cc:

Description (last modified by Viper007Bond)

File: wp-includes/ms-functions.php
Issue: remove_user_from_blog() returns false on success

I added a return true; to the above function. It would make sense that since add_user_to_blog returns true on success that remove does as well.

Patch attached. Simple one line bug fix .

Attachments (1)

ms-functions.diff (526 bytes) - added by eightamrock 3 years ago.
SVN Diff file with bug fix.

Download all attachments as: .zip

Change History (4)

eightamrock3 years ago

SVN Diff file with bug fix.

comment:1 Viper007Bond3 years ago

  • Description modified (diff)
  • Keywords needs-patch removed

comment:2 SergeyBiryukov3 years ago

  • Milestone changed from Awaiting Review to 3.3

comment:3 ryan3 years ago

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

In [18510]:

Return true upon success in remove_user_from_blog(). Props eightamrock. fixes #17344

Note: See TracTickets for help on using tickets.