[theme-reviewers] Updating Custom Backgrounds and Custom Headers for WordPress 3.4

Emil Uzelac emil at themeid.com
Tue Apr 17 04:15:30 UTC 2012


fair enough!

On Mon, Apr 16, 2012 at 11:08 PM, Amy Hendrix <sabreuse at gmail.com> wrote:

> No problem - let me know if it works; that was completely off the top
> of my head/untested, so no guarantees.
>
> On Tue, Apr 17, 2012 at 12:05 AM, Emil Uzelac <emil at themeid.com> wrote:
> > That's the start, thanks! I will try now.
> >
> > Emil
> >
> > On Mon, Apr 16, 2012 at 11:03 PM, Amy Hendrix <sabreuse at gmail.com>
> wrote:
> >>
> >> Hmm... I don't know that one as well as the header code, but it's part
> >> of the whole WP_Theme class business.
> >>
> >> As I understand it, get_theme_data(path) returns an array of all the
> >> stuff in the css header; it's been replaced by wp_get_theme(), which
> >> returns the current WP_Theme object. So, for the way you're using it
> >> in Responsive, you should be able to replace this:
> >>
> >>    $theme_data = get_theme_data(TEMPLATEPATH . '/style.css');
> >>    $responsive_template_name = $theme_data['Name'];
> >>
> >> With something like
> >>
> >>    $theme_data = wp_get_theme();
> >>    $responsive_template_name = $theme_data->get('Name');
> >>
> >> I suspect that's the most common way we'll run into it in the context
> >> of WPTRT, although it does many other things as well...
> >>
> >> On Mon, Apr 16, 2012 at 10:19 PM, Emil Uzelac <emil at themeid.com> 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
> >> >
> >> > On Mon, Apr 16, 2012 at 6:03 PM, David Law
> >> > <wp-hackers at google-adsense-templates.co.uk> wrote:
> >> >>
> >> >> On Mon, 16 Apr 2012 09:04:58 -0700, you wrote:
> >> >>
> >> >> >Can do the same for Custom Headers, but think it will be messy.
> Anyone
> >> >> >got a 'good' solution up and running?
> >> >> >
> >> >> >Hi David!
> >> >> >
> >> >> >A new version of P2 was released recently. It has custom header
> >> >> > support
> >> >> >for 3.4 and previous versions.
> >> >> >
> >> >> >You can see the code here:
> >> >> >http://themes.svn.wordpress.org/p2/1.4.0/inc/custom-header.php
> >> >>
> >> >> Thanks Mike,
> >> >>
> >> >> That's a much simpler code solution than I was thinking of using.
> >> >>
> >> >> Think I have it working now.
> >> >>
> >> >> For those looking for backwards compatability with the height and
> >> >> width attributes of the image code within their header.php files this
> >> >> works
> >> >>
> >> >> width="<?php if(function_exists('get_custom_header')) {echo
> >> >> get_custom_header()->width;} else {echo HEADER_IMAGE_WIDTH;} ?>"
> >> >> height="<?php if(function_exists('get_custom_header')) {echo
> >> >> get_custom_header()->height;} else {echo HEADER_IMAGE_HEIGHT;} ?>"
> >> >>
> >> >> David
> >> >> --
> >> >> http://www.stallion-theme.com/ Stallion WordPress SEO Theme
> >> >> http://www.stallion-theme.com/stallion-wordpress-seo-plugin Stallion
> >> >> WordPress SEO Plugin
> >> >>
> >> >>
> >> >> >-Mike
> >> >> >_______________________________________________
> >> >> >theme-reviewers mailing list
> >> >> >theme-reviewers at lists.wordpress.org
> >> >> >http://lists.wordpress.org/mailman/listinfo/theme-reviewers
> >> >> _______________________________________________
> >> >> theme-reviewers mailing list
> >> >> theme-reviewers at lists.wordpress.org
> >> >> http://lists.wordpress.org/mailman/listinfo/theme-reviewers
> >> >
> >> >
> >> >
> >> > _______________________________________________
> >> > theme-reviewers mailing list
> >> > theme-reviewers at lists.wordpress.org
> >> > http://lists.wordpress.org/mailman/listinfo/theme-reviewers
> >> >
> >> _______________________________________________
> >> theme-reviewers mailing list
> >> theme-reviewers at lists.wordpress.org
> >> http://lists.wordpress.org/mailman/listinfo/theme-reviewers
> >
> >
> >
> > _______________________________________________
> > theme-reviewers mailing list
> > theme-reviewers at lists.wordpress.org
> > http://lists.wordpress.org/mailman/listinfo/theme-reviewers
> >
> _______________________________________________
> 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/20120416/ecd22ea2/attachment-0001.htm>


More information about the theme-reviewers mailing list