Skip to content

Instantly share code, notes, and snippets.

@premist
Created May 25, 2012 08:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save premist/2786733 to your computer and use it in GitHub Desktop.
Save premist/2786733 to your computer and use it in GitHub Desktop.
Enable WordPress's direct core update or plugin/theme install
<?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