Message info
 
To:wp-svn@lists.automattic.com From:m@wordpress.org Subject:[wp-svn] [21027] trunk/wp-includes/class-wp-customize-manager.php: Remove the set_theme_mods() method from customize manager. Date:Thu, 7 Jun 2012 23:33:00 +0000 (UTC)
 

Revision
21027
Author
nacin
Date
2012-06-07 23:33:00 +0000 (Thu, 07 Jun 2012)

Log Message

Remove the set_theme_mods() method from customize manager. We ended up not using it. see #20871.

Modified Paths

Diff

Modified: trunk/wp-includes/class-wp-customize-manager.php (21026 => 21027)


--- trunk/wp-includes/class-wp-customize-manager.php	2012-06-07 22:58:22 UTC (rev 21026)
+++ trunk/wp-includes/class-wp-customize-manager.php	2012-06-07 23:33:00 UTC (rev 21027)
@@ -53,24 +53,6 @@
 	}
 
 	/**
-	 * Update theme modifications for the current theme.
-	 * Note: Candidate core function.
-	 * http://core.trac.wordpress.org/ticket/20091
-	 *
-	 * @since 3.4.0
-	 *
-	 * @param array $mods Theme modifications.
-	 */
-	public function set_theme_mods( $mods ) {
-		$current = get_theme_mods();
-
-		$mods = wp_parse_args( $mods, $current );
-
-		$theme = get_stylesheet();
-		update_option( "theme_mods_$theme", $mods );
-	}
-
-	/**
 	 * Start preview and customize theme.
 	 *
 	 * Check if customize query variable exist. Init filters to filter the current theme.