$userFrameworkResourceURL = $baseURL . "components/com_civicrm/civicrm/";
}
elseif ($config->userFramework == 'WordPress') {
- $userFrameworkResourceURL = $baseURL . "wp-content/plugins/civicrm/civicrm/";
+ $userFrameworkResourceURL = CIVICRM_PLUGIN_URL . "civicrm/";
}
elseif ($this->is_drupal) {
// Drupal setting
$upload_dir = wp_upload_dir();
$settingsDir = $upload_dir['basedir'] . DIRECTORY_SEPARATOR . 'civicrm' . DIRECTORY_SEPARATOR;
$settingsURL = $upload_dir['baseurl'] . DIRECTORY_SEPARATOR . 'civicrm' . DIRECTORY_SEPARATOR;
- if (is_dir(ABSPATH . 'wp-content/plugins/files/civicrm/')) {
+ if (is_dir(WP_PLUGIN_DIR . '/files/civicrm/')) {
//for legacy path
- $filesURL = $baseURL . "wp-content/plugins/files/civicrm/";
+ $filesURL = WP_PLUGIN_URL . "/files/civicrm/";
}
elseif (is_dir($settingsDir)) {
$filesURL = $settingsURL;
* define( 'CIVICRM_TEMPLATE_COMPILEDIR', '/var/www/htdocs/joomla/media/civicrm/templates_c/');
*
* EXAMPLE - WordPress Installations:
- * If the path to the WordPress home directory is /var/www/htdocs/wordpress
+ * If the path to the WordPress home directory is /var/www/htdocs/wordpress and the path to the plugin directory is /var/www/htdocs/wordpress/wp-content/plugins
* the $civicrm_root setting would be:
* $civicrm_root = '/var/www/htdocs/wordpress/wp-content/plugins/civicrm/civicrm/';
*
* the CIVICRM_TEMPLATE_COMPILEDIR would be:
- * define( 'CIVICRM_TEMPLATE_COMPILEDIR', '/var/www/htdocs/wordpress/wp-content/plugins/files/civicrm/templates_c/');
+ * define( 'CIVICRM_TEMPLATE_COMPILEDIR', '/var/www/htdocs/wordpress/wp-content/uploads/civicrm/templates_c/');
*
*/