Make WordPress Core

Ticket #20091: 20091.patch

File 20091.patch, 623 bytes (added by ocean90, 13 years ago)
  • wp-includes/theme.php

     
    13581358}
    13591359
    13601360/**
     1361 * Update theme modifications for the current theme.
     1362 *
     1363 * @since 3.4.0
     1364 *
     1365 * @param array $mods Theme modifications.
     1366 */
     1367function 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/**
    13611377 * Update theme modification value for the current theme.
    13621378 *
    13631379 * @since 2.1.0