Skip to content

title default doesn't work: field html uses language strings instead of pure strings #186

@wdfee

Description

@wdfee

Hi,
when adding a file, the predefined title is not adapted to the generated field html, if the site language is not English.
The cause is in the html( $default ) function of echt field type. The $field->default is passed with the localization function ecs_attr_e(), so the data-default value turns into "Titel" in German, for example. This doesn't work.
Solution is to just change all esc_attr_e() calls inside the html() function into
echo esc_attr()
in each /classes/fields/class.field.{type}.php

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions