#6668 closed defect (bug) (fixed)
wp_just_in_time_script_localization throws a notice when WP_DEBUG is defined
| Reported by: | simonwheatley | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 2.5.1 |
| Component: | General | Version: | 2.5 |
| Severity: | normal | Keywords: | has-patch needs-testing 2nd-opinion |
| Cc: | Focuses: |
Description
Steps to reproduce:
- Define the constant WP_DEBUG in wp_config.php
- Browse to the blog homepage of a fairly vanilla WP2.5 install
- 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.
Attachments (1)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Move constant AUTOSAVE_INTERVAL to wp_settings.php