<font color="#333333"><font><font face="arial,helvetica,sans-serif">That's the start, thanks! I will try now.</font></font></font><div><font color="#333333"><font><font face="arial,helvetica,sans-serif"><br></font></font></font></div>
<div><font color="#333333"><font><font face="arial,helvetica,sans-serif">Emil<br></font></font></font><br><div class="gmail_quote">On Mon, Apr 16, 2012 at 11:03 PM, Amy Hendrix <span dir="ltr"><<a href="mailto:sabreuse@gmail.com">sabreuse@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hmm... I don't know that one as well as the header code, but it's part<br>
of the whole WP_Theme class business.<br>
<br>
As I understand it, get_theme_data(path) returns an array of all the<br>
stuff in the css header; it's been replaced by wp_get_theme(), which<br>
returns the current WP_Theme object. So, for the way you're using it<br>
in Responsive, you should be able to replace this:<br>
<br>
$theme_data = get_theme_data(TEMPLATEPATH . '/style.css');<br>
$responsive_template_name = $theme_data['Name'];<br>
<br>
With something like<br>
<br>
$theme_data = wp_get_theme();<br>
$responsive_template_name = $theme_data->get('Name');<br>
<br>
I suspect that's the most common way we'll run into it in the context<br>
of WPTRT, although it does many other things as well...<br>
<div class="HOEnZb"><div class="h5"><br>
On Mon, Apr 16, 2012 at 10:19 PM, Emil Uzelac <<a href="mailto:emil@themeid.com">emil@themeid.com</a>> wrote:<br>
> Anyone ready to write something about Notice: get_theme_data is deprecated<br>
> since version 3.4! as well? That one is over my head :)<br>
><br>
> Emil<br>
><br>
> On Mon, Apr 16, 2012 at 6:03 PM, David Law<br>
> <<a href="mailto:wp-hackers@google-adsense-templates.co.uk">wp-hackers@google-adsense-templates.co.uk</a>> wrote:<br>
>><br>
>> On Mon, 16 Apr 2012 09:04:58 -0700, you wrote:<br>
>><br>
>> >Can do the same for Custom Headers, but think it will be messy. Anyone<br>
>> >got a 'good' solution up and running?<br>
>> ><br>
>> >Hi David!<br>
>> ><br>
>> >A new version of P2 was released recently. It has custom header support<br>
>> >for 3.4 and previous versions.<br>
>> ><br>
>> >You can see the code here:<br>
>> ><a href="http://themes.svn.wordpress.org/p2/1.4.0/inc/custom-header.php" target="_blank">http://themes.svn.wordpress.org/p2/1.4.0/inc/custom-header.php</a><br>
>><br>
>> Thanks Mike,<br>
>><br>
>> That's a much simpler code solution than I was thinking of using.<br>
>><br>
>> Think I have it working now.<br>
>><br>
>> For those looking for backwards compatability with the height and<br>
>> width attributes of the image code within their header.php files this<br>
>> works<br>
>><br>
>> width="<?php if(function_exists('get_custom_header')) {echo<br>
>> get_custom_header()->width;} else {echo HEADER_IMAGE_WIDTH;} ?>"<br>
>> height="<?php if(function_exists('get_custom_header')) {echo<br>
>> get_custom_header()->height;} else {echo HEADER_IMAGE_HEIGHT;} ?>"<br>
>><br>
>> David<br>
>> --<br>
>> <a href="http://www.stallion-theme.com/" target="_blank">http://www.stallion-theme.com/</a> Stallion WordPress SEO Theme<br>
>> <a href="http://www.stallion-theme.com/stallion-wordpress-seo-plugin" target="_blank">http://www.stallion-theme.com/stallion-wordpress-seo-plugin</a> Stallion<br>
>> WordPress SEO Plugin<br>
>><br>
>><br>
>> >-Mike<br>
>> >_______________________________________________<br>
>> >theme-reviewers mailing list<br>
>> ><a href="mailto:theme-reviewers@lists.wordpress.org">theme-reviewers@lists.wordpress.org</a><br>
>> ><a href="http://lists.wordpress.org/mailman/listinfo/theme-reviewers" target="_blank">http://lists.wordpress.org/mailman/listinfo/theme-reviewers</a><br>
>> _______________________________________________<br>
>> theme-reviewers mailing list<br>
>> <a href="mailto:theme-reviewers@lists.wordpress.org">theme-reviewers@lists.wordpress.org</a><br>
>> <a href="http://lists.wordpress.org/mailman/listinfo/theme-reviewers" target="_blank">http://lists.wordpress.org/mailman/listinfo/theme-reviewers</a><br>
><br>
><br>
><br>
> _______________________________________________<br>
> theme-reviewers mailing list<br>
> <a href="mailto:theme-reviewers@lists.wordpress.org">theme-reviewers@lists.wordpress.org</a><br>
> <a href="http://lists.wordpress.org/mailman/listinfo/theme-reviewers" target="_blank">http://lists.wordpress.org/mailman/listinfo/theme-reviewers</a><br>
><br>
_______________________________________________<br>
theme-reviewers mailing list<br>
<a href="mailto:theme-reviewers@lists.wordpress.org">theme-reviewers@lists.wordpress.org</a><br>
<a href="http://lists.wordpress.org/mailman/listinfo/theme-reviewers" target="_blank">http://lists.wordpress.org/mailman/listinfo/theme-reviewers</a><br>
</div></div></blockquote></div><br></div>