Opened 17 years ago
Closed 17 years ago
#12435 closed defect (bug) (fixed)
use __return_false|true instead of create_function
| Reported by: | TobiasBg | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.0 |
| Component: | General | Version: | |
| Severity: | normal | Keywords: | has-patch commit |
| Cc: | Focuses: |
Description
The newly added functions __return_false and __return_true from #12381 should be used throughout core to replace those ugly create_function( ..., 'return true|false;' ); calls.
A quick grep only showed one occurance though, which can be changed with the attached patch.
I also suggest back-porting those two functions to BackPress.
Attachments (1)
Change History (5)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Patch replaces one occurance of create_function with new return_false