Casting new line as literal rather than interpreted.
git-svn-id: https://develop.svn.wordpress.org/trunk@1167 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
46e23e15ad
commit
cbae3debcd
@ -8,7 +8,7 @@ if ($_GET['action']) {
|
||||
$current = preg_replace("|(\n)+\s*|", "\n", $current);
|
||||
$current = trim($current) . "\n " . trim($_GET['plugin']);
|
||||
$current = trim($current);
|
||||
$current = preg_replace('|\n\s*|', '\n', $current); // I don't know where this is coming from
|
||||
$current = preg_replace("|\n\s*|", "\n", $current); // I don't know where this is coming from
|
||||
update_option('active_plugins', $current);
|
||||
header('Location: plugins.php?activate=true');
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user