承接 gwa/multisite-directory-resolver 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

gwa/multisite-directory-resolver

最新稳定版本:v2.2.0

Composer 安装命令:

composer require gwa/multisite-directory-resolver

包简介

Adds filters that correct directory paths in a Wordpress multisite install with the WordPress installation in a custom subfolder.

README 文档

README

Adds filters that correct directory paths in a Wordpress multisite install with the WordPress installation in a custom subfolder.

Master

Quality Score Build Status

Develop

Quality Score Build Status

Usage

Requirements

PHP 5.4.0 or above

Installation

Install through composer.

composer require gwa/multisite-directory-resolver

How to use

// project root: path/to/project
// wp install:   path/to/project/custom/install/path

// choose which resolver you like to use
// 1. MultisiteResolverManager::TYPE_FOLDER - Use only for sub folder url handling -> example.com/site1/../..
// 2. MultisiteResolverManager::TYPE_SUBDOMAIN - Use only for sub domain handling -> test.example.com

$mdr = new Gwa\Wordpress\MultisiteDirectoryResolver('custom/install/path', $resolver);
$mdr->init();

Set you cookie like this to resolve the wordpress multisite redirect Loop.

define('COOKIE_DOMAIN', $_SERVER['HTTP_HOST']);
define('ADMIN_COOKIE_PATH', '/');

Contributing

All code contributions - including those of people having commit access - must go through a pull request and approved by a core developer before being merged. This is to ensure proper review of all the code.

Fork the project, create a feature branch, and send us a pull request.

To ensure a consistent code base, you should make sure the code follows the Coding Standards which we borrowed from Symfony.

The easiest way to do make sure you're following the coding standard is to run vendor/bin/php-cs-fixer fix before committing.

If you would like to help take a look at the list of issues.

Authors

Great White Ark - bannert@greatwhiteark.com - http://www.greatwhiteark.com

License

Open-sourced software licensed under the MIT license

统计信息

  • 总下载量: 21.42k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 4
  • 点击次数: 0
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 4
  • Watchers: 3
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-04-30