diff --git a/wp-includes/theme.php b/wp-includes/theme.php index 47fe9cb162..c3a4206530 100644 --- a/wp-includes/theme.php +++ b/wp-includes/theme.php @@ -991,18 +991,18 @@ function get_theme_mods() { /** * Retrieves theme modification value for the active theme. * - * If the modification name does not exist and `$default` is a string, then the + * If the modification name does not exist and `$default_value` is a string, then the * default will be passed through the {@link https://www.php.net/sprintf sprintf()} * PHP function with the template directory URI as the first value and the * stylesheet directory URI as the second value. * * @since 2.1.0 * - * @param string $name Theme modification name. - * @param mixed $default Optional. Theme modification default value. Default false. + * @param string $name Theme modification name. + * @param mixed $default_value Optional. Theme modification default value. Default false. * @return mixed Theme modification value. */ -function get_theme_mod( $name, $default = false ) { +function get_theme_mod( $name, $default_value = false ) { $mods = get_theme_mods(); if ( isset( $mods[ $name ] ) ) { @@ -1020,17 +1020,17 @@ function get_theme_mod( $name, $default = false ) { return apply_filters( "theme_mod_{$name}", $mods[ $name ] ); } - if ( is_string( $default ) ) { + if ( is_string( $default_value ) ) { // Only run the replacement if an sprintf() string format pattern was found. - if ( preg_match( '#(?