Opened 13 years ago
Closed 13 years ago
#21067 closed defect (bug) (invalid)
wp_get_theme() returns the ThemeURI and AuthorURI but cannot access them.
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 3.4 |
Component: | Themes | Keywords: | close |
Focuses: | Cc: |
Description
$theme = wp_get_theme(); returns the whole array with all the required data, but we cannot access $theme->AuthorURI, $theme->ThemeURI from that array. Not sure if this WordPress bug or not. But it doesnot work in Twentyeleven theme too.
Change History (4)
Note: See
TracTickets for help on using
tickets.
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: