Make WordPress Core

Opened 16 years ago

Closed 16 years ago

#5016 closed defect (bug) (fixed)

timer_stop() returns error when called from advanced-cache.php

Reported by: javiergarciaesteban's profile javiergarciaesteban Owned by:
Milestone: 2.3 Priority: high
Severity: normal Version: 2.3
Component: General Keywords: timer_stop, number_format_i18n
Focuses: Cc:


timer_stop() is defined *before* advanced-cache.php runs, but it calls the newly added function number_format_i18n(), which is defined *after* (in functions.php file).

So timer_stop() returns an error when called from advanced-cache.php. Caching systems use widely this function to output the execution time.

Change History (3)

#1 @javiergarciaesteban
16 years ago

  • Keywords timer_stop number_format_i18n added; time removed

#2 @markjaquith
16 years ago

  • Priority changed from normal to high

#3 @markjaquith
16 years ago

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

(In [6139]) Make sure number_format_i18n() is available before calling it in timer_stop(). fixes #5016

Note: See TracTickets for help on using tickets.