Opened 11 years ago
Closed 10 years ago
#5518 closed defect (bug) (fixed)
Return results for bp_[update|delete]_option()
Reported by: | slaFFik | Owned by: | boonebgorges |
---|---|---|---|
Milestone: | 2.1 | Priority: | normal |
Severity: | normal | Version: | 1.5 |
Component: | Core | Keywords: | has-patch dev-feedback commit |
Cc: |
Description
I'm on BuddyPress beta.
Currently only bp_add_option()
return the result of native WordPress function.
Could you please add return for bp_update_option()
and bp_delete_option()
as well?
Thanks in advance.
Attachments (1)
Change History (8)
#2
@
11 years ago
- Milestone changed from 2.0 to 2.1
Yes, let's do this, but it's late to do it for BP 2.0.
#4
follow-up:
↓ 5
@
11 years ago
- Version changed from 2.0 to 1.5
These functions have acted this way since they were introduced in BP 1.5, so the issue you raise is not a regression in 2.0. And while it's very unlikely that adding return values is going to break anything, it's not impossible. And it's unwise to make changes with breaking potential at this point in the dev cycle (for either 2.0 or 1.9.x) for non-regressions. Thus the 2.1 milestone :)
I see that you already using this like this:
But this results in errors in PHPStorm, as nothing explicitly returned but the function.