The Social links form keeps adding new values even without adding a new one on submission. This is caused by line 318 in the admin.inc file:

variable_set('structured_data_social_links', $form_state['values']['social_links']['links']);

It needs to save the array of links filtered w/o empty values as:

variable_set('structured_data_social_links', array_filter($form_state['values']['social_links']['links']));

See attached patch

Comments

Baik Ho created an issue. See original summary.

baikho’s picture

baikho’s picture

Status: Active » Needs review