[theme-reviewers] Updating Custom Backgrounds and Custom Headers for WordPress 3.4
Edward Caissie
edward.caissie at gmail.com
Tue Apr 17 12:19:03 UTC 2012
Meh ... not enough coffee this morning (*grin*)
Here is a link to my GitHub repository for Desk Mess Mirrored:
https://github.com/Cais/desk-mess-mirrored/blob/master/functions.php#L218
The `dmm_theme_version` function uses `get_theme_data` pre-3.4-alpha and
`wp_get_theme` afterward.
Although it did allow for a bit of simplification that I should have
already wrote, it really does not take much to "convert" the get_theme_data
usage to wp_get_theme.
It does get a bit more convoluted when dealing with multiple themes, but
not too much more ... although I haven't had a use-case to work with yet.
Cais.
On Tue, Apr 17, 2012 at 8:04 AM, David Law <
wp-hackers at google-adsense-templates.co.uk> wrote:
> On Mon, 16 Apr 2012 21:19:02 -0500, you wrote:
>
> >Anyone ready to write something about Notice: get_theme_data is
> deprecated since version 3.4! as well? That one is over my head :)
> >Emil
>
> I'm using
>
> global $wp_version;
> if ($wp_version >= '3.4') {
> $themes = wp_get_themes();
> }else{
> $themes = get_themes();
> }
>
>
> Depending on where this is added you might not need global
> $wp_version;
>
> David
> --
> http://www.stallion-theme.com/ Stallion WordPress SEO Theme
> http://www.stallion-theme.com/stallion-wordpress-seo-plugin Stallion
> WordPress SEO Plugin
> _______________________________________________
> theme-reviewers mailing list
> theme-reviewers at lists.wordpress.org
> http://lists.wordpress.org/mailman/listinfo/theme-reviewers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wordpress.org/pipermail/theme-reviewers/attachments/20120417/a43668e9/attachment.htm>
More information about the theme-reviewers
mailing list