Changeset 49214
- Timestamp:
- 10/19/2020 10:43:21 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/theme.php
r49193 r49214 1039 1039 * 1040 1040 * @since 2.1.0 1041 * @since 5.6.0 A return value was added. 1041 1042 * 1042 1043 * @param string $name Theme modification name. 1043 1044 * @param mixed $value Theme modification value. 1045 * @return bool True if the value was updated, false otherwise. 1044 1046 */ 1045 1047 function set_theme_mod( $name, $value ) { … … 1062 1064 1063 1065 $theme = get_option( 'stylesheet' ); 1064 update_option( "theme_mods_$theme", $mods ); 1066 1067 return update_option( "theme_mods_$theme", $mods ); 1065 1068 } 1066 1069 … … 1088 1091 return; 1089 1092 } 1093 1090 1094 $theme = get_option( 'stylesheet' ); 1095 1091 1096 update_option( "theme_mods_$theme", $mods ); 1092 1097 } … … 1105 1110 $theme_name = wp_get_theme()->get( 'Name' ); 1106 1111 } 1112 1107 1113 delete_option( 'mods_' . $theme_name ); 1108 1114 }
Note: See TracChangeset
for help on using the changeset viewer.