[wp-trac] [WordPress Trac] #22334: Fix: change default WP_DEBUG on localhost
WordPress Trac
noreply at wordpress.org
Wed Oct 31 16:48:51 UTC 2012
#22334: Fix: change default WP_DEBUG on localhost
-----------------------------+-------------------------
Reporter: DavidAnderson | Type: enhancement
Status: new | Priority: normal
Milestone: Awaiting Review | Component: General
Version: | Severity: normal
Keywords: |
-----------------------------+-------------------------
I propose changing the default WP_DEBUG in wp-config-sample.php and in
WordPress-generated config files to:
define('WP_DEBUG', ($_SERVER\['SERVER_NAME'\] == "localhost" ? true :
false ));
This is surely a better default than at present:
* Sites on localhost are usually development sites, where WP_DEBUG should
be on
* This will save some developers from having to change the setting as they
move between live and development; it will work well in both
--
Ticket URL: <http://core.trac.wordpress.org/ticket/22334>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list