Notice: get_theme_data è deprecata dalla versione 3.4! Utilizzare al suo posto wp_get_theme(). in /var/www/vhosts/sacrafamigliact.it/httpdocs/wp/wp-includes/functions.php on line 2871
Thank you for using Brunelleschi version 1.0.0. Edit your theme options here. Learn what's new in version 1.0.0.
What i can do?
Really thanks, Antonio.
]]>I’m getting this warning when updating your plugin’s options:
Notice: get_theme_data is deprecated since version 3.4! Use wp_get_theme() instead.
Another user posted a solution here, is there any chance you can merge it into the plugin?
Thank you in advance!
https://www.ads-software.com/extend/plugins/theme-test-drive/
]]>When I try to check my theme with Debogger, I’m getting weird error like :
”’WP_DEBUG et al.:”’
— Debug: Undefined variable: src2 on line 76 of /wp-content/themes/themename/header.php
=> Error: get_theme_data is deprecated since version 3.4! Use wp_get_theme() instead.
But the problem is I never used get_theme_data in my theme files. I tried to find it somewhere in other files with find & replace, but, even on other files, I couldn’t find any get_theme_data value.
Is it something like bug ?
Thanks for great plugin,
Hakan
https://www.ads-software.com/extend/plugins/debogger/
]]>Notice: get_theme_data is deprecated since version 3.4! Use wp_get_theme() instead. in /customers/d/6/7/smartlookoptikk.no/httpd.www/wp-includes/functions.php on line 2705
And I have tried to find funcktions.php and remove “get_theme_data” but I could not find any “get_theme_data” in functions.php??
can any one help?? Thx
[topic closed as duplicate – continue with https://www.ads-software.com/support/topic/get_theme_data-is-deprecated-since-version-34?replies=9 ]
]]>Just upgraded my WordPress site to 3.4 and got this PHP notice while using your Platform Theme:
Notice: get_theme_data is deprecated since version 3.4! Use wp_get_theme() instead
Any ideas?
https://www.ads-software.com/extend/themes/platform/
]]>If I want to get the theme uri etc, I’ve tried like this:
$dp_theme_data = wp_get_theme();
define( 'DP_THEME_URI', $dp_theme_data[ 'URI' ] );
Obviously it didn’t work, the constant is blank. How can I make it work, please?
]]>I am trying to set up a function for a theme options panel to look up the version on a remote site to determine whether a new version is available.
I tried simply calling the get_theme_data function but quickly discovered that if the file doesn’t exist (e.g. if the remote site is down) it returns every page in the local site as error 500 – internal server error.
My solution was to use this code:
$remote_version_url = 'https://www.jamesmorrison.me/style-test.css';
if ( file_exists($remote_version_url) ) {
$remote_theme_data = get_theme_data($remote_version_url);
$remote_version = $remote_theme_data['Version'];
} else {
$remote_version = "0"; // ensures that update message is not shown
}
to ensure that the file is looked up before processing the data, but the file always shows as not found (even though it exists).
Have I missed something obvious or is there an error with the code?
Many thanks for any help!
James
]]>My problem is this, and it’s probably an easy one, I want to in my footer include a small note about what theme im using. However, when I use the get_theme_data-function I can’t get it to work.
The example given just tells me the name and author of the default theme. Which is pretty useless since Im not using it.
And if I use some hotchpotch-code such as: <?php $theme_data = get_theme_data($theme_filename); ?> and reference it with: echo $theme_data[‘Title’];, I get a implode-error.
Does anyone have a tip or solution to this ?
/ M
]]>get_theme_data()
function should return the theme’s Title as:
Either the Theme’s name or a HTML fragment containg the Theme’s name linked to the Theme’s URI if the Theme’s URI is defined.
However, this is not the case, as it will never return a HTML fragment containg the Theme’s name linked to the Theme’s URI, even if the Theme’s URI is defined.
Probably an oversight where the Theme Name and Theme URI have not been given the same treatment as the Author and Author URI.
]]>