Suppress safe mode restriction warnings.
git-svn-id: https://develop.svn.wordpress.org/trunk@2243 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
ea3809cba3
commit
78266ae933
@ -543,7 +543,7 @@ function make_site_theme_from_oldschool($theme_name, $template) {
|
||||
else
|
||||
$oldpath = ABSPATH;
|
||||
|
||||
if (! copy("$oldpath/$oldfile", "$site_dir/$newfile"))
|
||||
if (! @copy("$oldpath/$oldfile", "$site_dir/$newfile"))
|
||||
return false;
|
||||
|
||||
chmod("$site_dir/$newfile", 0777);
|
||||
@ -596,7 +596,7 @@ function make_site_theme_from_default($theme_name, $template) {
|
||||
$files = array('index.php', 'comments.php', 'comments-popup.php', 'footer.php', 'header.php', 'sidebar.php', 'style.css');
|
||||
|
||||
foreach ($files as $file) {
|
||||
if (! copy("$default_dir/$file", "$site_dir/$file"))
|
||||
if (! @copy("$default_dir/$file", "$site_dir/$file"))
|
||||
return;
|
||||
|
||||
chmod("$site_dir/$file", 0777);
|
||||
|
Loading…
x
Reference in New Issue
Block a user