Skip to content
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

The current theme only works on 5.2 due to the use of wp_body_open #1

Closed
ronalfy opened this issue Jul 8, 2019 · 5 comments
Closed
Assignees

Comments

@ronalfy
Copy link

ronalfy commented Jul 8, 2019

The use of wp_body_open only exists in WordPress 5.2. Creating a PR now to make sure it works in lesser versions unless you want this theme to be 5.2 only.

@BinaryMoon
Copy link
Owner

Thanks.

I had something similar to this originally (see the code here: https://github.com/BinaryMoon/granule/blob/master/compat.php)

However I removed the compat.php file. I am trying to encourage best practice, and that's to keep WordPress up to date.

Perhaps it's a bit soon though since this function is only a few months old. What do you think?

@ronalfy
Copy link
Author

ronalfy commented Jul 8, 2019 via email

@BinaryMoon
Copy link
Owner

The latest version :)

I'm still not 100% sure what to do. At the moment I'm edging towards leave it as is. Since the theme probably won't be on wordpress.org for about 4 months (a month to finish building and 3 months to review) the 5.2 adoption rate should be quite high.

The other option I am considering would be to add back the compat file and add a note for when it can be removed. I'd then have a fallback for any future non-compat functions I might use.

@ronalfy
Copy link
Author

ronalfy commented Jul 9, 2019

I'd say stick with 5.2 then.

@ronalfy ronalfy closed this as completed Jul 9, 2019
@BinaryMoon BinaryMoon reopened this Jul 9, 2019
@BinaryMoon
Copy link
Owner

Just been looking at the install stats and I think you're right.
https://wordpress.org/about/stats/

5.2 is only 30% and this is the only feature stopping the theme from being used on other installs. I think I will add back the compat.php with a note about the required version. I can then remove it when the installation rate is better.

@BinaryMoon BinaryMoon self-assigned this Jul 9, 2019
@paaljoachim paaljoachim mentioned this issue Jul 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants