mirror of
https://github.com/processwire/processwire.git
synced 2025-08-13 02:04:35 +02:00
Bump version to 3.0.159
This commit is contained in:
@@ -499,6 +499,8 @@ class PagesParents extends Wire {
|
||||
}
|
||||
} else if($page->parentPrevious && $page->parentPrevious->id != $page->parent->id) {
|
||||
// existing page with parent changed
|
||||
$this->rebuildAll();
|
||||
/*
|
||||
if($page->parentPrevious->numChildren === 0) {
|
||||
// parent no longer has children and doesn’t need entry
|
||||
$numRows += $this->delete($page->parentPrevious);
|
||||
@@ -507,6 +509,7 @@ class PagesParents extends Wire {
|
||||
// first time parent gets added to pages_parents
|
||||
$numRows += $this->rebuild($page->parent);
|
||||
}
|
||||
*/
|
||||
}
|
||||
|
||||
return $numRows;
|
||||
|
@@ -77,7 +77,7 @@ class ProcessWire extends Wire {
|
||||
* Reversion revision number
|
||||
*
|
||||
*/
|
||||
const versionRevision = 158;
|
||||
const versionRevision = 159;
|
||||
|
||||
/**
|
||||
* Version suffix string (when applicable)
|
||||
|
@@ -2169,9 +2169,13 @@ class Sanitizer extends Wire {
|
||||
}
|
||||
|
||||
// reductions and replacements
|
||||
$reductions = array('..' => '.', './' => ' ', ' ' => ' ', '--' => '-');
|
||||
$reductions = array('..' => '.', './' => ' ', ' ' => ' ');
|
||||
foreach($reductions as $f => $r) {
|
||||
while(strpos($value, $f) !== false) $value = str_replace($f, $r, $value);
|
||||
if(strpos($value, $f) === false) continue;
|
||||
if(in_array($f, $options['whitelist'])) continue;
|
||||
do {
|
||||
$value = str_replace($f, $r, $value);
|
||||
} while(strpos($value, $f) !== false);
|
||||
}
|
||||
|
||||
$value = trim($value); // trim any kind of whitespace
|
||||
|
Reference in New Issue
Block a user