You appear to be a bot. Output may be restricted
Description
Return the current theme name
Note: get_current_theme() was deprecated in WP 3.4 but wp_get_theme() is NEW It didn't exist in WP 3.3.1. So we need a wrapper to test the WordPress version
C:\apache\htdocs\wordpress\wp-content\plugins\oik\bobbfunc.inc(1037:0) 2012-07-18T11:03:12+00:00 617 cf=the_content bw_get_theme(4) current theme WP_Theme Object ( [theme_root:WP_Theme:private] => C:\apache\htdocs\wordpress/wp-content/themes [headers:WP_Theme:private] => Array ( [Name] => Twenty Eleven [ThemeURI] => http://wordpress.org/extend/themes/twentyeleven [Description] => The 2011 theme for WordPress is sophisticated, lightweight, and adaptable. Make it yours with a custom menu, header image, and background — then go further with available theme options for light or dark color scheme, custom link colors, and three layout choices. Twenty Eleven comes equipped with a Showcase page template that transforms your front page into a showcase to show off your best content, widget support galore (sidebar, three footer areas, and a Showcase page widget area), and a custom "Ephemera" widget to display your Aside, Link, Quote, or Status posts. Included are styles for print and for the admin editor, support for featured images (as custom header images on posts and pages and as large images on featured "sticky" posts), and special styles for six different post formats. [Author] => the WordPress team [AuthorURI] => http://wordpress.org/ [Version] => 1.4 [Template] => [Status] => [Tags] => dark, light, white, black, gray, one-column, two-columns, left-sidebar, right-sidebar, fixed-width, flexible-width, custom-background, custom-colors, custom-header, custom-menu, editor-style, featured-image-header, featured-images, full-width-template, microformats, post-formats, rtl-language-support, sticky-post, theme-options, translation-ready [TextDomain] => twentyeleven [DomainPath] => ) [headers_sanitized:WP_Theme:private] => [name_translated:WP_Theme:private] => [errors:WP_Theme:private] => [stylesheet:WP_Theme:private] => twentyeleven [template:WP_Theme:private] => twentyeleven [parent:WP_Theme:private] => [theme_root_uri:WP_Theme:private] => [textdomain_loaded:WP_Theme:private] => [cache_hash:WP_Theme:private] => a3e6a9c1d55ef4070d99b81dc839928b )
Usage
bw_get_theme();
Parameters
Returns
void
Source
File name: oik-bwtrace/libs/bobbfunc.php
Lines:
function bw_get_theme() { global $wp_version; if ( version_compare( $wp_version, '3.4', "ge" ) ) { $theme = wp_get_theme(); $current_theme = $theme->stylesheet; } else { $current_theme = get_current_theme(); } bw_trace2( $current_theme, "current theme" ); return( $current_theme ); }