最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

installation - Wordpress composer issues

programmeradmin1浏览0评论

I'm using composer to install wordpress but I have a situation when I run composer install I end up with a nested wp-content directory as follows. (Wordpress is the root install directory)

  • wordpress/wp-content/wp-content

All the default core Wordpress themes and plugins end up in the following directories.

  • wordpress/wp-content/wp-content/themes
  • wordpress/wp-content/wp-content/plugins

All my plugins in the composer file end up in the correct directories

  • wordpress/wp-content/plugins
  • wordpress/wp-content/themes
{
  "require": {
    "johnpbloch/wordpress": ">=5.4",
    "wpackagist-plugin/admin-menu-editor": "1.9.8",
    "wpackagist-plugin/autoptimize": "2.8.1",
    "wp-api/basic-auth": "dev-master",
    "wpackagist-plugin/blog2social": "6.6.0",
    "wpackagist-plugin/bulk-delete": "6.0.1",
    "wpackagist-plugin/contact-form-7": "5.3.2",
    "wpackagist-plugin/custom-post-type-permalinks": "3.4.4",
    "wpackagist-plugin/custom-post-type-ui": "1.8.2",
    "wp-cli/wp-cli-bundle": "*",
    "wpackagist-plugin/redis-cache": "^2.0"
  },
  "extra": {
    "installer-paths": {
      "wordpress/wp-content/plugins/{$name}/": [
        "type:wordpress-plugin"
      ],
      "wordpress/wp-content/themes/{$name}/": [
        "type:wordpress-theme"
      ]
    },
    "wordpress-install-dir": "wordpress"
  },
  "repositories": [
    {
      "type": "composer",
      "url": ";
    }
  ],
  "scripts": {
    "post-install-cmd": [
    ]
  }
}
发布评论

评论列表(0)

  1. 暂无评论