AdvancedCustomFields / AdvancedCustomFields/acf
ACF Pro: package's composer.json says name "wpengine/advanced-custom-fields", not "...-pro"
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 945
- Forks
- 197
- PR merge metrics
- No merged PRs in 30d
Description
composer require wpengine/advanced-custom-fields-pro installs fine from connect.advancedcustomfields.com. But the package it pulls down declares this in its own composer.json:
{
"name": "wpengine/advanced-custom-fields",
"type": "wordpress-plugin"
}
So the name inside the package doesn't match the name you distribute it under.
It bites going the other way. I'm migrating sites to a Composer-managed setup, so I read each installed plugin's composer.json to work out what to require. For ACF Pro that gives me wpengine/advanced-custom-fields, which isn't installable, so I special-case it back to -pro.
Any chance the Pro build could declare wpengine/advanced-custom-fields-pro in composer.json? Keeping the replace on the free name would avoid breaking anything else.
(Seen on 6.8.1.)
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 inspecting the composer.json included in the ACF Pro 6.8.1 build and compare its declared package name with the distributed Composer name. Verify that the Pro package declares wpengine/advanced-custom-fields-pro while retaining replacement compatibility for the free package, then confirm the resulting metadata supports the reported Composer workflow.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php, wordpress
- Domain
- release
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 74/100