Some doc updates. see #15048.

git-svn-id: http://svn.automattic.com/wordpress/trunk@15739 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
nacin 2010-10-07 05:59:50 +00:00
parent 38e017024d
commit 5f0bc55c0b
1 changed files with 11 additions and 11 deletions

View File

@ -1302,13 +1302,13 @@ function validate_current_theme() {
*
* @since 3.1.0
*
* @return mixed Theme modifications value.
* @return array Theme modifications.
*/
function get_theme_mods() {
$theme_slug = get_option( 'stylesheet' );
if ( false === ( $mods = get_option( "theme_mods_$theme_slug" ) ) ) {
$theme_name = get_current_theme();
$mods = get_option( "mods_$theme_name" );
$mods = get_option( "mods_$theme_name" ); // Deprecated location.
if ( is_admin() && false !== $mods ) {
update_option( "theme_mods_$theme_slug", $mods );
delete_option( "mods_$theme_name" );