This commit is contained in:
Alexander Agnarson 2020-02-25 18:04:54 +01:00
parent 62def2a89b
commit 7ad333b360
167 changed files with 2955 additions and 2493 deletions

View file

@ -1,6 +1,6 @@
<?php
/**
* Hekoers to get the values of a field.
* Helpers to get the values of a field.
* WARNING: PLEASE DO NOT USE THESE.
* we only have these for backwards-compatibility purposes.
* please use get_option() & get_theme_mod() instead.
@ -9,7 +9,7 @@
* @category Core
* @author Ari Stathopoulos (@aristath)
* @copyright Copyright (c) 2019, Ari Stathopoulos (@aristath)
* @license https://opensource.org/licenses/MIT
* @license https://opensource.org/licenses/MIT
* @since 1.0
*/
@ -47,7 +47,10 @@ class Kirki_Values {
// Combine font-family and font-backup.
if ( isset( $value['font-family'] ) && isset( $value['font-backup'] ) ) {
$value['font-family'] .= ', ' . $value['font-backup'];
$backup = trim( $value['font-backup'] );
if ( ! empty( $backup ) ) {
$value['font-family'] .= ', ' . $backup;
}
unset( $value['font-backup'] );
}
}