• Resolved twelve6

    (@twelve6)


    Can you update the validation pattern example:

    if ( empty( $value ) ){ $message = sprint_f( $message, get_current_user()->user_login ); return false; }

    This is confusing since sprint_f is an undefined function. Also using an updated example to let users know they should be using double quotes and not single quotes.

    Thank you! Great Plugin!

    https://ww.wp.xz.cn/plugins/validated-field-for-acf/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author doublesharp

    (@doublesharp)

    Yuck, good catch. The function name has probably been wrong forever and the new handling of messages/response is a lot cleaner as well, so I will get both updated for the next version.

    Both single and double quotes should work, but it wouldn’t surprise me if you ran into an issue either. Any other info you can provide would be great.

    Plugin Author doublesharp

    (@doublesharp)

    @twelve6 It looks like you are using the ACF 4 code which is starting to fall behind the ACF 5 development, so that is likely where you are seeing issues with the quotes. I would recommend upgrading to ACF 5 if you can.

    Justin

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Update Validation Pattern Example:’ is closed to new replies.