WordPress.org

Make WordPress Core

Opened 5 years ago

Closed 5 years ago

Last modified 5 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:

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)

comment:1 westi5 years ago

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

comment:2 westi5 years ago

I thought I tested that case :-(

comment:3 westi5 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.

comment:4 filosofo5 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.