Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Overwrite for allowing plugin updates on localhost
- */
- if ( is_admin() ) {
- add_filter( 'filesystem_method', create_function( '$a', 'return "direct";' ) );
- if ( ! defined( 'FS_CHMOD_DIR' ) ) {
- define( 'FS_CHMOD_DIR', 0751 );
- }
- }
Add Comment
Please, Sign In to add comment