Merge pull request #619 from djtm/patch-1
Fix Invalid argument supplied for foreach() in class-archive.php:138
This commit is contained in:
commit
8966a517c6
1 changed files with 3 additions and 0 deletions
|
@ -135,6 +135,9 @@ class Archive {
|
|||
}
|
||||
|
||||
private function add_hrefs($hrefs) {
|
||||
if(!is_array($hrefs)){
|
||||
$hrefs=array($hrefs);
|
||||
}
|
||||
foreach ($hrefs as $href) {
|
||||
if (trim($href) === '') {
|
||||
continue;
|
||||
|
|
Loading…
Reference in a new issue