-
Notifications
You must be signed in to change notification settings - Fork 280
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Specify minimum Genesis version when supported by Genesis #172
Comments
Yup! I've got it too. ` ( ! ) Fatal error: Uncaught Error: Call to undefined function genesis_get_config() in /Users/marybaum/Sites/dts 3.8.5/proshop.dev.cc/wp-content/themes/genesis-sample/functions.php on line 1311 | 0.0051 | 538240 | {main}( ) | .../index.php:0 ` |
If you're not running the Genesis 2.8 Beta, you'll get this error. Try installing the Genesis 2.8 Beta and let us know if that fixes you up. |
Will do! |
Worked a treat, of course! Had cruised over here figuring there had to be a version with the new function |
when will you release 2.8? |
@broros Genesis 2.8.0 is currently scheduled for 16 January 2019, although that may change. You can try it now using the Genesis Beta Tester plugin if you wish: https://wordpress.org/plugins/genesis-beta-tester/ Genesis Sample 2.8.0 will likely be released at the same time or shortly afterwards. |
So this error reported and confirmed by @marybaum and @broros raises and interesting question. Will there be any error checking or backward compatibility added to Overall, I love the idea of a move to configuration loading with However each of these files are still in the core and can be loaded as: Are all theme_supports begin moved to config? Or is config a place where a developer can expand the way themes are designed? I am concerned that without backward compatibility or error checks, it may become problematic. |
We've not done this in the past for other versions of Genesis Sample that required specific versions of Genesis, although I believe this is the first time users will see a fatal error if they're not running the latest Genesis so I agree it's worth considering. Ideally it should be the role of WordPress core to determine minimum parent theme, WordPress, and PHP versions for plugins and themes. There was a proposal for a parent theme minimum version check on activation, but it was recently closed due to inactivity. For now we could:
I'm not sure this is a massive improvement on throwing a fatal error (because the theme still won't work as expected), but at least it's more user friendly.
The Genesis configuration API in Genesis 2.8 lets child theme developers do two things:
There will be full documentation on the whys and hows of this when Genesis 2.8 launches (or shortly after). |
We've decided to abstain from adding minimum Genesis version checking logic in the child theme for now. Instead, we'll investigate ways to move that logic to Genesis itself and have child themes specify their minimum requirements in a more simple way. Requirements API for specifying minimum Genesis version in child themes I'm leaving this open so we can (a) track the impact of this in support and (b) add version checking requirements if/when Genesis implements an API for it. |
after downloading and upon activating the Genesis Sample theme I get an error.
The text was updated successfully, but these errors were encountered: