Skip to content

Warning line 115 of functions.php #2

@jdelia

Description

@jdelia

I noticed line 115 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/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions