[wp-trac] [WordPress Trac] #6668:
wp_just_in_time_script_localization throws
a notice when WP_DEBUG is defined
WordPress Trac
wp-trac at lists.automattic.com
Thu Apr 10 18:51:15 GMT 2008
#6668: wp_just_in_time_script_localization throws a notice when WP_DEBUG is
defined
---------------------------+------------------------------------------------
Reporter: simonwheatley | Owner: anonymous
Type: defect | Status: new
Priority: normal | Milestone: 2.5.1
Component: General | Version: 2.5
Severity: normal | Keywords: has-patch needs-testing 2nd-opinion
---------------------------+------------------------------------------------
Steps to reproduce:
1. Define the constant WP_DEBUG in wp_config.php
2. Browse to the blog homepage of a fairly vanilla WP2.5 install
3. Check the PHP error log, and you should see:
Use of undefined constant AUTOSAVE_INTERVAL - assumed 'AUTOSAVE_INTERVAL'
in /Users/simon/Projects/WordPress-2.5/site/wp-includes/script-
loader.php:497
Looking around, it seems sensible to define AUTOSAVE_INTERVAL in one
place, further up the hierachy where it will be present by the time
wp_just_in_time_script_localization is called. wp_settings.php contains
similar Constant defines, so I've put it there.
--
Ticket URL: <http://trac.wordpress.org/ticket/6668>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list