定制 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
  • 点击次数: 2
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

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

其他信息

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

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固