Make WordPress Core

Opened 12 years ago

Closed 12 years ago

#17344 closed defect (bug) (fixed)

MS Function - remove_user_from_blog returns null

Reported by: eightamrock's profile eightamrock Owned by: sam-napolitano's profile 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 12 years ago.
SVN Diff file with bug fix.

Download all attachments as: .zip

Change History (4)

12 years ago

SVN Diff file with bug fix.

#1 @Viper007Bond
12 years ago

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

#2 @SergeyBiryukov
12 years ago

  • Milestone changed from Awaiting Review to 3.3

#3 @ryan
12 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.