Skip to content
Snippets Groups Projects
Commit e88851fc authored by Kurund Jalmi's avatar Kurund Jalmi
Browse files

Merge pull request #8 from dlobo/CRM-10655

CRM-10655
parents 6c1c9041 a84b38b8
No related branches found
No related tags found
No related merge requests found
......@@ -385,6 +385,15 @@ function civicrm_wp_frontend($shortcode = FALSE) {
(
CRM_Utils_Array::value(0, $args) == 'civicrm' &&
CRM_Utils_Array::value(1, $args) == 'ajax'
) ||
// we also follow this pattern where civicrm controls the
// entire page like an ical feed
(
CRM_Utils_Array::value(0, $args) == 'civicrm' &&
CRM_Utils_Array::value(1, $args) == 'event' &&
CRM_Utils_Array::value(2, $args) == 'ical' &&
// skip the html page since that is rendered in the CMS theme
CRM_Utils_Array::value('html', $_GET) != 1
)
) {
add_filter('init', 'civicrm_wp_invoke');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment