Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#9248 closed defect (bug) (fixed)

'exit' is not a valid callback function

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

Description

This line:

https://core.trac.wordpress.org/browser/trunk/wp-includes/classes.php?rev=10619#L352

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)

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

I thought I tested that case :-(

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

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

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.