Ticket #20091: 20091.patch
File 20091.patch, 623 bytes (added by , 13 years ago) |
---|
-
wp-includes/theme.php
1358 1358 } 1359 1359 1360 1360 /** 1361 * Update theme modifications for the current theme. 1362 * 1363 * @since 3.4.0 1364 * 1365 * @param array $mods Theme modifications. 1366 */ 1367 function set_theme_mods( $mods ) { 1368 $current = get_theme_mods(); 1369 1370 $mods = wp_parse_args( $mods, $current ); 1371 1372 $theme = get_stylesheet(); 1373 update_option( "theme_mods_$theme", $mods ); 1374 } 1375 1376 /** 1361 1377 * Update theme modification value for the current theme. 1362 1378 * 1363 1379 * @since 2.1.0