wpengine / wpengine/wpackagist
Some plugins always install in latest version
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 768
- Forks
- 69
- Avg merge
- 3h 52m
- Merged PRs (30d)
- 1
Description
Hi there,
I've experienced that some plugins always install in the latest version although an older version is specified in composer.lock
{
"name": "wpackagist-plugin/cf7-grid-layout",
"version": "4.13.0",
"source": {
"type": "svn",
"url": "https://plugins.svn.wordpress.org/cf7-grid-layout/",
"reference": "trunk"
},
"dist": {
"type": "zip",
"url": "https://downloads.wordpress.org/plugin/cf7-grid-layout.zip?timestamp=1653228166"
},
"require": {
"composer/installers": "^1.0 || ^2.0"
},
"type": "wordpress-plugin",
"homepage": "https://wordpress.org/plugins/cf7-grid-layout/"
},
This seems to be related to download URLs that don't include a version number but a timestamp. Because these links seem always to point to the latest version the wrong version might be installed.
I've opened an issue in the plugin support forum and the author needs some hint where to change the download url:
https://wordpress.org/support/topic/include-version-in-download-url/#post-16078572
He also points out that older versions are available through this page:
https://wordpress.org/plugins/cf7-grid-layout/advanced/#download-previous-link
So maybe it's possible to always use these "previous download links" and not the default link on the blue "Download" button.
Currently we've seen this with the following plugins:
- https://wordpress.org/plugins/captcha-solution/
- https://wordpress.org/plugins/cf7-grid-layout/
- https://wordpress.org/plugins/cf7-polylang/
Best regards
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by comparing the composer.lock entries for cf7-grid-layout, captcha-solution, and cf7-polylang with their WordPress download URLs. Review the linked WordPress support discussion and the advanced page's previous-download links to determine how versioned archives should be selected. Done means installing a locked older version retrieves that version rather than the latest plugin release.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php, wordpress
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100