EM_URI and domain mapping (request with small patch)
-
Hello,
there’s a very small issue with domain mapping on multisite: The “all events” link in the events widget links the original domain (like subdomain.domain.com) not the mapped domain (like otherdomain.com). This happens because the EM_URI is defined before the domain mapping definings are added to get_permalink.
Here are two solutions, could you please integrate one of them in the next version?
solution 1 (I prefer this because it would adjust other maybe wrong links, too):
change em_get_link in em-template-tags.php (line 175): Don’t use here the constant but the get_permalink (because this is called after domain mapping):function em_get_link( $text = '' ) { $text = ($text == '') ? get_option ( "dbem_events_page_title" ) : $text; $text = ($text == '') ? __('Events','dbem') : $text; //In case options aren't there.... return '<a href="'.esc_url(get_permalink(get_option("dbem_events_page"))).'" title="'.esc_attr($text).'">'.esc_html($text).'</a>'; }
solution 2:
change the all-events link only direct in the widgets/em-events.phpThanks,
Fee
- The topic ‘EM_URI and domain mapping (request with small patch)’ is closed to new replies.