https gets added on the text fields

Support Meta Box AIO https gets added on the text fieldsResolved

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #47091
    LexLex
    Participant

    I have some "text" type custom fields. After I update a post on which these fields are appearing all are getting appended a https:// inside the field. (even if they are not urls)
    For example if I have a "name_field" and add John, after I save it, it will be http://John. (and can't remove it afterwards from the interface)

    #47094
    PeterPeter
    Moderator

    Hello Lex,

    Do you use any custom code to sanitize the field and add "http" to the field value after saving? Please share the code that you use to create the field group or export the field group to a JSON file and share it here. I will help you check the field settings.
    Following the documentation https://docs.metabox.io/extensions/meta-box-builder/#export--import

    #47096
    LexLex
    Participant

    Hi Peter,
    I found the issue. It was the sanitize_callback in the register_meta for those fields. (it was duplicated from the url field)

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.