Last active
January 11, 2016 16:45
-
-
Save metodiew/5559228 to your computer and use it in GitHub Desktop.
my wp-config tricks for localhost development
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
define( 'WP_DEBUG', true ); | |
error_reporting( E_ALL ); | |
ini_set( 'display_errors', 'yes' ); | |
define( 'FS_METHOD', 'direct' ); // Allows you to upload/update themes/plugins/core from your localhost | |
define( 'WP_DEBUG_LOG', true ); | |
define( 'SCRIPT_DEBUG', true ); | |
define( 'MEDIA_TRASH', true ); // Enable the "Trash" Feature for Media Files | |
define( 'DISALLOW_FILE_EDIT', true ); // Disable theme/plugin editor | |
define( 'WP_POST_REVISIONS', 5 ); // Limit the number of revisions |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment