Skip to content

Conversation

@jdelia
Copy link

@jdelia jdelia commented Jun 8, 2015

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/

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('<p>%s</p>', antispambot($email), antispambot($email) );

as it should be:

if (genesis_get_custom_field('_agent_email') != '') {
$email = genesis_get_custom_field('_agent_email');
$output.= sprintf('<p>%s</p>', antispambot($email), antispambot($email));
}

It is throwing a PHP warning with DEBUG on.

https://wordpress.org/plugins/genesis-agent-profiles/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant