[wp-trac] [WordPress Trac] #21067: wp_get_theme() returns the ThemeURI and AuthorURI but cannot access them.
WordPress Trac
wp-trac at lists.automattic.com
Mon Jun 25 10:54:33 UTC 2012
#21067: wp_get_theme() returns the ThemeURI and AuthorURI but cannot access them.
--------------------------+------------------------------
Reporter: kcssm | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 3.4
Severity: normal | Resolution:
Keywords: close |
--------------------------+------------------------------
Changes (by duck_):
* keywords: => close
Comment:
AuthorURI and ThemeURI have never been accessible properties when getting
the current theme (current_theme_info() in 3.3).
To get these values you should use the get() method:
{{{
$theme = wp_get_theme();
$theme->get('AuthorURI');
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/21067#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list