Created
May 25, 2012 08:51
-
-
Save premist/2786733 to your computer and use it in GitHub Desktop.
Enable WordPress's direct core update or plugin/theme install
This file contains 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
<?php | |
/* After "that's all, stop editing! Happy blogging.", put these lines. | |
Change permission value(default is 0755) if you want. */ | |
if(is_admin()) { | |
add_filter('filesystem_method', create_function('$a', 'return "direct";' )); | |
define( 'FS_CHMOD_DIR', 0755 ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment