Make WordPress Core

Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#9248 closed defect (bug) (fixed)

'exit' is not a valid callback function

Reported by: sambauers Owned by: westi
Milestone: 2.8 Priority: low
Severity: minor Version: 2.8
Component: General Keywords:
Focuses: Cc:


This line:


Causes a PHP warning because "exit" is a language construct not a function.

More importantly the script probably doesn't exit as desired.

Change History (4)

#1 @westi
9 years ago

  • Milestone changed from 2.7.2 to 2.8
  • Status changed from new to assigned
  • Version set to 2.8

#2 @westi
9 years ago

I thought I tested that case :-(

#3 @westi
9 years ago

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

(In [10672]) Make the exit call explicit so that it works. Fixes #9248.

#4 @filosofo
9 years ago

Sorry about that. I did test it and didn't get any warnings. I'm not sure why--maybe because only a header is being requested and returned?

Note: See TracTickets for help on using tickets.