Permalink
Browse files

Nicer default permissions

  • Loading branch information...
1 parent 4c77600 commit 5a158fb9689ef80d147c3ddfee114a31b660691e @stefanoverna stefanoverna committed Dec 6, 2011
Showing with 4 additions and 4 deletions.
  1. +2 −2 wordless/admin.php
  2. +2 −2 wordless/theme_builder.php
View
@@ -30,7 +30,7 @@ public static function check_roles() {
public static function add_notice() {
echo '<div class="error"><p>';
echo sprintf(
- __('Your current theme does not have support for the Wordless plugin. <a href="%2$s" target="_blank">%1$s</a>'),
+ __('Your current theme does seem to be a Wordless-compatible theme! <a href="%2$s" target="_blank">%1$s</a>'),
__('Learn more'),
'https://github.com/welaika/wordless#readme'
);
@@ -60,7 +60,7 @@ public static function page_content() {
"chmod_set" => array(
"label" => "Permissions",
"description" => "Specify three octal number components specifying access restrictions",
- "default_value" => "0774"
+ "default_value" => "0664"
)
);
if ($_SERVER['REQUEST_METHOD'] == "POST") {
@@ -42,8 +42,8 @@ private function copy($src, $dst) {
private function make_directory($path) {
if (!file_exists($path)) {
- mkdir($path, $this->chmod_set);
- chmod($path, $this->chmod_set);
+ mkdir($path, 0775);
+ chmod($path, 0775);
}
}

0 comments on commit 5a158fb

Please sign in to comment.