- Output for 5.3.0 - 5.3.28, 5.4.0 - 5.4.23
- Parse error: syntax error, unexpected '}' in /in/Qi5bl on line 23
Process exited with code 255.
<?php
$postarr = array('_parent_id' => null, '_year' => 2013);
$data['post_type'] = "easy-photo-album";
if(!isset($postarr)){
return $data;
}
if($data['post_type'] == 'easy-photo-album') {
$title = 'Undefined album';
if(isset($postarr['_parent_id']) && !empty($postarr['_parent_id'])){
$event = get_post($postarr['_parent_id']);
$title = $event->post_title;
}
$title .= ' ['.$postarr['_year'].']';
$data['post_title'] = $title;
}
print_r($data);
}