Update Roots WordPress Version
February 11, 2025 ยท AI Conversations
User
{
"name": "roots/bedrock",
"type": "project",
"license": "MIT",
"description": "WordPress boilerplate with Composer, easier configuration, and an improved folder structure",
"homepage": "https://roots.io/bedrock/",
"authors": [
{
"name": "Scott Walkinshaw",
"email": "scott.walkinshaw@gmail.com",
"homepage": "https://github.com/swalkinshaw"
},
{
"name": "Ben Word",
"email": "ben@benword.com",
"homepage": "https://github.com/retlehs"
}
],
"keywords": [
"bedrock", "composer", "roots", "wordpress", "wp", "wp-config"
],
"support": {
"issues": "https://github.com/roots/bedrock/issues",
"forum": "https://discourse.roots.io/category/bedrock"
},
"repositories": [
{
"type": "composer",
"url": "https://wpackagist.org",
"only": ["wpackagist-plugin/*", "wpackagist-theme/*"]
}
],
"require": {
"php": ">=7.4",
"composer/installers": "^2.2",
"vlucas/phpdotenv": "^5.5",
"oscarotero/env": "^2.1",
"roots/bedrock-autoloader": "^1.0",
"roots/bedrock-disallow-indexing": "^2.0",
"roots/wordpress": "^6",
"roots/wp-config": "1.0.0",
"roots/wp-password-bcrypt": "1.1.0",
"wpackagist-theme/twentytwentythree": "^1.0",
"wpackagist-plugin/aryo-activity-log":"^2",
"wpackagist-plugin/better-wp-security":"^9",
"wpackagist-plugin/cryptx": "^3",
"wpackagist-plugin/duplicate-post": "^4",
"wpackagist-plugin/f4-tree": "^1",
"wpackagist-plugin/imagify":"^2",
"wpackagist-plugin/public-post-preview":"^2",
"wpackagist-plugin/real-media-library-lite":"^4",
"wpackagist-plugin/redirection": "^5",
"wpackagist-plugin/smtp-mailer": "^1",
"wpackagist-plugin/wordpress-seo": "^23",
"wpackagist-plugin/worker":"^4",
"roots/acorn": "^4.2",
"wpackagist-plugin/elementor": "^3.23",
"wpackagist-plugin/tutor": "^2.7",
"wpackagist-plugin/tutor-lms-elementor-addons": "2.1.4",
"wpackagist-plugin/simple-local-avatars": "^2.7",
"wpackagist-plugin/regenerate-thumbnails": "3.1.6",
"wpackagist-plugin/megamenu": "3.3.1",
"wpackagist-plugin/query-monitor": "^3.16",
"wpackagist-plugin/leadin": "11.1.22"
},
"require-dev": {
"squizlabs/php_codesniffer": "^3.7.1",
"roave/security-advisories": "dev-latest"
},
"config": {
"optimize-autoloader": true,
"preferred-install": "dist",
"allow-plugins": {
"composer/installers": true,
"roots/wordpress-core-installer": true
}
},
"minimum-stability": "dev",
"prefer-stable": true,
"extra": {
"installer-paths": {
"web/app/mu-plugins/{$name}/": ["type:wordpress-muplugin"],
"web/app/plugins/{$name}/": ["type:wordpress-plugin"],
"web/app/themes/{$name}/": ["type:wordpress-theme"]
},
"wordpress-install-dir": "web/wp"
},
"scripts": {
"post-root-package-install": [
"php -r "copy('.env.example', '.env');""
],
"test": [
"phpcs"
]
}
}
update root/wordpress to latest version
"name": "roots/bedrock",
"type": "project",
"license": "MIT",
"description": "WordPress boilerplate with Composer, easier configuration, and an improved folder structure",
"homepage": "https://roots.io/bedrock/",
"authors": [
{
"name": "Scott Walkinshaw",
"email": "scott.walkinshaw@gmail.com",
"homepage": "https://github.com/swalkinshaw"
},
{
"name": "Ben Word",
"email": "ben@benword.com",
"homepage": "https://github.com/retlehs"
}
],
"keywords": [
"bedrock", "composer", "roots", "wordpress", "wp", "wp-config"
],
"support": {
"issues": "https://github.com/roots/bedrock/issues",
"forum": "https://discourse.roots.io/category/bedrock"
},
"repositories": [
{
"type": "composer",
"url": "https://wpackagist.org",
"only": ["wpackagist-plugin/*", "wpackagist-theme/*"]
}
],
"require": {
"php": ">=7.4",
"composer/installers": "^2.2",
"vlucas/phpdotenv": "^5.5",
"oscarotero/env": "^2.1",
"roots/bedrock-autoloader": "^1.0",
"roots/bedrock-disallow-indexing": "^2.0",
"roots/wordpress": "^6",
"roots/wp-config": "1.0.0",
"roots/wp-password-bcrypt": "1.1.0",
"wpackagist-theme/twentytwentythree": "^1.0",
"wpackagist-plugin/aryo-activity-log":"^2",
"wpackagist-plugin/better-wp-security":"^9",
"wpackagist-plugin/cryptx": "^3",
"wpackagist-plugin/duplicate-post": "^4",
"wpackagist-plugin/f4-tree": "^1",
"wpackagist-plugin/imagify":"^2",
"wpackagist-plugin/public-post-preview":"^2",
"wpackagist-plugin/real-media-library-lite":"^4",
"wpackagist-plugin/redirection": "^5",
"wpackagist-plugin/smtp-mailer": "^1",
"wpackagist-plugin/wordpress-seo": "^23",
"wpackagist-plugin/worker":"^4",
"roots/acorn": "^4.2",
"wpackagist-plugin/elementor": "^3.23",
"wpackagist-plugin/tutor": "^2.7",
"wpackagist-plugin/tutor-lms-elementor-addons": "2.1.4",
"wpackagist-plugin/simple-local-avatars": "^2.7",
"wpackagist-plugin/regenerate-thumbnails": "3.1.6",
"wpackagist-plugin/megamenu": "3.3.1",
"wpackagist-plugin/query-monitor": "^3.16",
"wpackagist-plugin/leadin": "11.1.22"
},
"require-dev": {
"squizlabs/php_codesniffer": "^3.7.1",
"roave/security-advisories": "dev-latest"
},
"config": {
"optimize-autoloader": true,
"preferred-install": "dist",
"allow-plugins": {
"composer/installers": true,
"roots/wordpress-core-installer": true
}
},
"minimum-stability": "dev",
"prefer-stable": true,
"extra": {
"installer-paths": {
"web/app/mu-plugins/{$name}/": ["type:wordpress-muplugin"],
"web/app/plugins/{$name}/": ["type:wordpress-plugin"],
"web/app/themes/{$name}/": ["type:wordpress-theme"]
},
"wordpress-install-dir": "web/wp"
},
"scripts": {
"post-root-package-install": [
"php -r "copy('.env.example', '.env');""
],
"test": [
"phpcs"
]
}
}
update root/wordpress to latest version
Assistant
You can update the `roots/wordpress` package to the latest version by running the following command in your Bedrock project directory:
composer update roots/wordpress
If you want to explicitly require the latest version, first check for available updates:
composer show roots/wordpress --all
Then, if needed, update `composer.json` manually by changing:
"roots/wordpress": "^6"
to:
"roots/wordpress": "^6.5"
(or the latest version available). After that, run:
composer update roots/wordpress
Finally, clear the cache and verify the update:
composer clear-cache
composer check-platform-reqs
Let me know if you face any issues! ๐