'userFrameworkUsersTableName' => ['setting'],
'verpSeparator' => ['setting'],
'wkhtmltopdfPath' => ['setting'],
- 'wpBasePage' => ['setting'],
'wpLoadPhp' => ['setting'],
// "path" properties are managed via Civi::paths and $civicrm_paths
// @todo remove geocodeMethod. As of Feb 2018, $config->geocodeMethod works but gives a deprecation warning.
'geocodeMethod' => ['callback', 'CRM_Utils_Geocode', 'getProviderClass'],
'defaultCurrencySymbol' => ['callback', 'CRM_Core_BAO_Country', 'getDefaultCurrencySymbol'],
+ 'wpBasePage' => ['callback', 'CRM_Utils_System_WordPress', 'getBasePage'],
];
}
*/
class CRM_Utils_System_WordPress extends CRM_Utils_System_Base {
+ /**
+ * Get a normalized version of the wpBasePage.
+ */
+ public static function getBasePage() {
+ return rtrim(Civi::settings()->get('wpBasePage'), '/');
+ }
+
/**
*/
public function __construct() {