Bedrock v2
@retlehs is already working on this.
Since Feb 20, 2025.
Assessment
This issue has not been assessed yet.
Description
Bedrock will be getting a major version update 💥 We'll be making changes to the directory structure and configuration system to better align with modern PHP practices.
These directory changes mean we'll need to update Trellis to accommodate the new structure. It will also mean we'll need to update any other tools that interact with Bedrock sites, such as Valet/Herd drivers, deployment scripts, docs/tutorials, etc.
Directory structure
- Rename
web/directory topublic/to better align with modern PHP practices - Make the
app/directory (wp-content) the public web root 🔨
Configuration
- Adopt wp-config v2
- New fluent configuration API
- Simplified environment handling
- Drop
WP_ENVin favor of WordPress core'sWP_ENVIRONMENT_TYPE
Bedrock v1:
├── composer.json
├── config/
│ ├── application.php # Primary wp-config
│ └── environments
│ ├── development.php
│ ├── staging.php
│ └── production.php
├── vendor/ # Composer dependencies
└── web/ # Public document root
├── app/ # WordPress content dir
│ ├── mu-plugins/
│ ├── plugins/
│ ├── themes/
│ └── uploads/
├── index.php
├── wp-config.php
└── wp/ # WordPress core
Bedrock v2:
├── config.php # Primary wp-config
├── composer.json
├── vendor/ # Composer dependencies
└── public/ # Public document root (renamed from web/)
├── index.php
├── wp-config.php # Required wp-config.php from WordPress, loads our wp-config.php from the project root
├── mu-plugins/
├── plugins/
├── themes/
├── uploads/
└── wp/ # WordPress core
- Dominant language
- PHP
- Stars
- 6.6k
- Forks
- 1.2k
- Avg merge
- 2h 15m
- Merged PRs (30d)
- 1
Getting set up
Starts the project's dev container in your browser, under your own GitHub account.
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
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.
More from roots/bedrock
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
Dependency DashboardOpen
Difficulty 4/5 3-5 days Newbie friendliness 20/100
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
OpenGIS/waymark-wp#82 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 1 day
-
9.1 9.2 Bug
Difficulty 1/5 Under an hour Newbie friendliness 88/100
neos/neos-development-collection#6046 ·
Maintainers usually reply within 1 day
-
[Sync EN] Pdo\Pgsql: document session state reset on persistent connections (PHP 8.6) (#6084)Possibly taken @lacatoire claimed this today. Opensync-en
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 1 day
-
Перевод устарел
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
Maintainers usually reply within 1 day