fixed code sniffer reported errors
This commit is contained in:
@ -225,9 +225,9 @@ class Pages {
|
|||||||
|
|
||||||
if($custom_field['type'] === 'date') {
|
if($custom_field['type'] === 'date') {
|
||||||
$date_formats = FormBlockDate::getDateFormats();
|
$date_formats = FormBlockDate::getDateFormats();
|
||||||
$custom_field['params']['date_format'] = $date_formats[
|
$custom_field['params']['date_format'] = array_shift(
|
||||||
$custom_field['params']['date_type']
|
$date_formats[$custom_field['params']['date_type']]
|
||||||
][0];
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
return $custom_field;
|
return $custom_field;
|
||||||
|
Reference in New Issue
Block a user