From a0b9e3cb0d5b8843258489d5b2c147d2a057450e Mon Sep 17 00:00:00 2001 From: Jackie D'Elia Date: Mon, 8 Jun 2015 14:44:51 -0400 Subject: [PATCH] Update functions.php I noticed line 105 of plugin's functions.php email code needs to be wrapped in brackets since it is on two lines: as it is now: if (genesis_get_custom_field('_agent_email') != '') $email = genesis_get_custom_field('_agent_email'); $output .= sprintf('

%s

', antispambot($email), antispambot($email) ); as it should be: if (genesis_get_custom_field('_agent_email') != '') { $email = genesis_get_custom_field('_agent_email'); $output.= sprintf('

%s

', antispambot($email), antispambot($email)); } It is throwing a PHP warning with DEBUG on. https://wordpress.org/plugins/genesis-agent-profiles/ --- includes/functions.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/functions.php b/includes/functions.php index 4e3616d..26dfb14 100644 --- a/includes/functions.php +++ b/includes/functions.php @@ -102,10 +102,10 @@ function do_agent_details() { if (genesis_get_custom_field('_agent_fax') != '') $output .= sprintf('

Fax: %s

', genesis_get_custom_field('_agent_fax') ); - if (genesis_get_custom_field('_agent_email') != '') + if (genesis_get_custom_field('_agent_email') != '') { $email = genesis_get_custom_field('_agent_email'); $output .= sprintf('

', antispambot($email), antispambot($email) ); - + } if (genesis_get_custom_field('_agent_website') != '') $output .= sprintf('

', genesis_get_custom_field('_agent_website'), genesis_get_custom_field('_agent_website') ); @@ -203,4 +203,4 @@ function aep_admin_redirect( $page, $query_args = array() ) { wp_redirect( esc_url_raw( $url ) ); -} \ No newline at end of file +}