@@ -997,15 +997,15 @@ function get_theme_mods() {
997
997
/**
998
998
* Retrieves theme modification value for the current theme.
999
999
*
1000
- * If the modification name does not exist, then the $default will be passed
1001
- * through {@link https://www.php.net/sprintf sprintf()} PHP function with
1002
- * the template directory URI as the first string and the stylesheet directory URI
1003
- * as the second string .
1000
+ * If the modification name does not exist and ` $default` is a string, then the
1001
+ * default will be passed through the {@link https://www.php.net/sprintf sprintf()}
1002
+ * PHP function with the template directory URI as the first value and the
1003
+ * stylesheet directory URI as the second value .
1004
1004
*
1005
1005
* @since 2.1.0
1006
1006
*
1007
- * @param string $name Theme modification name.
1008
- * @param string|false $default Optional. Theme modification default value. Default false.
1007
+ * @param string $name Theme modification name.
1008
+ * @param mixed $default Optional. Theme modification default value. Default false.
1009
1009
* @return mixed Theme modification value.
1010
1010
*/
1011
1011
function get_theme_mod ( $ name , $ default = false ) {
@@ -1021,7 +1021,7 @@ function get_theme_mod( $name, $default = false ) {
1021
1021
*
1022
1022
* @since 2.2.0
1023
1023
*
1024
- * @param string $current_mod The value of the current theme modification.
1024
+ * @param mixed $current_mod The value of the current theme modification.
1025
1025
*/
1026
1026
return apply_filters ( "theme_mod_ {$ name }" , $ mods [ $ name ] );
1027
1027
}
@@ -1062,8 +1062,8 @@ function set_theme_mod( $name, $value ) {
1062
1062
*
1063
1063
* @since 3.9.0
1064
1064
*
1065
- * @param string $value The new value of the theme modification.
1066
- * @param string $old_value The current value of the theme modification.
1065
+ * @param mixed $value The new value of the theme modification.
1066
+ * @param mixed $old_value The current value of the theme modification.
1067
1067
*/
1068
1068
$ mods [ $ name ] = apply_filters ( "pre_set_theme_mod_ {$ name }" , $ value , $ old_value );
1069
1069
0 commit comments