[wp-trac] [WordPress Trac] #59758: Update Theme via CLI ignores Requires PHP Constraint
WordPress Trac
noreply at wordpress.org
Fri Nov 24 02:52:04 UTC 2023
#59758: Update Theme via CLI ignores Requires PHP Constraint
-----------------------------+-----------------------------
Reporter: salcode | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Future Release
Component: Upgrade/Install | Version: 6.4
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
-----------------------------+-----------------------------
Comment (by lakshmananphp):
**Test Report**
Env / Setup:
Theme: TT4
WordPress: 6.4
OS: macOS Sonoma
Localhost: docker wordpress-develop container
Browser: Chrome
Note: I used the Rider theme for testing, mainly checking WP CLI logs.
**Setup Steps:**
{{{
npm run env:cli -- wp theme install rider --version=2.1.0 --activate
}}}
**Steps to test**
Update the rider theme via WP CLI
Apply the patch
Remove the rider theme
Install v2.1.0 again
Update the theme via CLI
**Results**
Without the patch:
The rider theme got updated to the 3.0 version, which requires PHP 8.1
With the patch:
I got the error "The PHP version on your server is 7.4.30. However, the
new theme requires 8.1", and the theme did not get updated.
I've added screenshots on the PR (https://github.com/WordPress/wordpress-
develop/pull/5583#issuecomment-1823567981).
Conclusion:
The patch works as expected
--
Ticket URL: <https://core.trac.wordpress.org/ticket/59758#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list