Opened 15 years ago
Closed 15 years ago
#12435 closed defect (bug) (fixed)
use __return_false|true instead of create_function
Reported by: | TobiasBg | Owned by: | |
---|---|---|---|
Milestone: | 3.0 | Priority: | normal |
Severity: | normal | Version: | |
Component: | General | Keywords: | has-patch commit |
Focuses: | Cc: |
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.
Patch replaces one occurance of create_function with new return_false