#59557 closed defect (bug) (fixed)
Twenty Nineteen: The required WordPress versions do not match
Reported by: | poena | Owned by: | SergeyBiryukov |
---|---|---|---|
Milestone: | 6.4 | Priority: | normal |
Severity: | normal | Version: | 5.0 |
Component: | Bundled Theme | Keywords: | has-patch |
Focuses: | Cc: |
Description (last modified by )
In the readme, style.scss and style.css files, the required WordPress version is set to 4.9.6:
Requires at least: 4.9.6
But in functions.php, the minimum version is 4.7.
It has been 4.7 since #45424.
/** * Twenty Nineteen only works in WordPress 4.7 or later. */ if ( version_compare( $GLOBALS['wp_version'], '4.7', '<' ) ) { require get_template_directory() . '/inc/back-compat.php'; return; }
Since there may already be installations on 4.7, the file headers should be updated to say 4.7.
A previous conversation about the required version mentions that the version needs to be 4.9.6 because the theme uses the_privacy_policy_link()
. But the_privacy_policy_link()
is wrapped inside a function_exist:
if ( function_exists( 'the_privacy_policy_link' ) ) { the_privacy_policy_link( '', '<span role="separator" aria-hidden="true"></span>' ); }
Other relevant discussions:
https://github.com/WordPress/twentynineteen/issues/431
https://github.com/WordPress/twentynineteen/pull/432
Change History (20)
This ticket was mentioned in PR #5422 on WordPress/wordpress-develop by @kafleg.
12 months ago
#2
- Keywords has-patch added; needs-patch removed
This PR will update the Requires at least to 4.7 everywhere.
#4
@
12 months ago
- Description modified (diff)
- Summary changed from Twenty Ninteen: The required WordPress versions do not match to Twenty Nineteen: The required WordPress versions do not match
12 months ago
#5
I'm not able to remove #b251590 commit. Please ignore that commit and rest of the commits are fine.
@shailu25 commented on PR #5422:
12 months ago
#7
#8
@
12 months ago
- Keywords changes-requested added
This is simple enough (or it looks like it) and can be done quickly, so, I am keeping it in the current milestone for now.
This ticket was mentioned in Slack in #core by nicolefurlan. View the logs.
12 months ago
#10
@
12 months ago
This ticket was discussed in today's bug scrub.
@kafleg would you be able to update the PR ASAP so that we could get this included in the 6.4 release?
@felipeelia also said they would be willing to help.
This ticket was mentioned in PR #5503 on WordPress/wordpress-develop by @felipeelia.
12 months ago
#11
Same as https://github.com/WordPress/wordpress-develop/pull/5422 but addressing shail-mehta comment.
Trac ticket: https://core.trac.wordpress.org/ticket/59557
@shailu25 commented on PR #5503:
12 months ago
#15
Thank you @felipeelia for Updating Remaining changes
It looks good to me.
@SergeyBiryukov commented on PR #5422:
12 months ago
#19
Thanks for the PR! Merged in r56952.
@SergeyBiryukov commented on PR #5503:
12 months ago
#20
Thanks for the PR! Merged in r56952.
Hello Carolina :)
Since
the_privacy_policy_link()
is wrapped inside afunction_exists
check, I don't think it is relevant to require4.9.6
. Let's update to4.7
everywhere.