We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1902575 + 2eea4c3 commit 20f786aCopy full SHA for 20f786a
themes/osi/inc/template-functions.php
@@ -229,7 +229,8 @@ function osi_the_page_dates() {
229
* @return string The processed content.
230
*/
231
function osi_force_content_links_new_tab( string $content ) {
232
- if ( ! em_is_event_rsvpable() ) {
+ // Ensure Events Manager plugin is active and functionality for RSVPable events exists.
233
+ if ( function_exists( 'em_is_event_rsvpable' ) && ! em_is_event_rsvpable() ) {
234
// Instantiate the processor.
235
$processor = new \WP_HTML_Tag_Processor( $content );
236
@@ -252,7 +253,7 @@ function osi_force_content_links_new_tab( string $content ) {
252
253
}
254
255
- return $processor->get_updated_html();
256
+ $content = $processor->get_updated_html();
257
258
259
return $content;
0 commit comments