Changeset 51578
- Timestamp:
- 08/07/2021 01:53:58 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/theme.php
r51524 r51578 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 passed1001 * through {@link https://www.php.net/sprintf sprintf()} PHP function with1002 * the template directory URI as the first string and the stylesheet directory URI1003 * 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 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 */ … … 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 ] ); … … 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 );
Note: See TracChangeset
for help on using the changeset viewer.