CRM16421 CRM 17633: Changes to support WP in it's own directory. Allow for civicrn...
authorKevin Cristiano <kcristiano@tadpole.cc>
Sat, 22 Apr 2017 21:21:10 +0000 (17:21 -0400)
committerKevin Cristiano <kcristiano@tadpole.cc>
Wed, 27 Sep 2017 13:14:55 +0000 (09:14 -0400)
commitf553d1eac3d3bd329fd85d0a2abf7b3acf2a7023
tree290b8953059b9afa6765749ef7801f1467e1a1f2
parent300ba38870986d7534ff568c974c8763a4c51dfd
CRM16421 CRM 17633: Changes to support WP in it's own directory. Allow for civicrn.settings.extra.php for WP. Create template for civicrm.settings.extra.php. Update install/civicrm.php for all needed params for different common install scenarios. Fix linting issues in civicrm.php.
CRM 16421 CRM 17633 - update CRM_Utils_System_WordPress to allow for common install configurations

CRM-16421 - Convert constants to `$civicrm_paths`

Following up on the discussion from
[#10513](https://github.com/civicrm/civicrm-core/pull/10513), this converts
the proposed constants `CIVICRM_UF_WP_BASEURL` and `CIVICRM_UF_ADMINURL` to
variables in the `Paths` system.

A few benefits:
 * Reduces code duplication between `civicrm.php` and `WordPress.php`.
 * Can construct sub-paths with prettier notation (`Civi::paths()->getUrl('[wp.frontend]/foo.txt')`)
 * Has options to output relative or absolute URLs
 * Can expand on `Paths` to provide more inspection/validation

Notes:

 * `CIVICRM_UF_WP_BASEURL` => `wp.frontend.base`
 * `CIVICRM_UF_ADMINURL` => `wp.backend.base`

----------------------------------------
* CRM-16421: Work to get CiviCRM for WordPress in WordPress' official Repository
  https://issues.civicrm.org/jira/browse/CRM-16421

CRM-16421 - Assimilate `civicrm.settings.extra.php` into `civicrm.settings.php`

----------------------------------------
* CRM-16421: Work to get CiviCRM for WordPress in WordPress' official Repository
  https://issues.civicrm.org/jira/browse/CRM-16421

CRM-17633 merge current master changes to civicrm.settings.php.template
CRM/Utils/System/WordPress.php
Civi/Core/Paths.php
install/civicrm.php
templates/CRM/common/civicrm.settings.php.template