Divi WordPress Theme
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

WordPress fix Reply To: Warning: sprintf(): – How can I fix it?

Discussion in 'Misc WordPress Requests' started by RossMitchell, Jan 28, 2018.

  1. RossMitchell

    Guest

    Reply To: Warning: sprintf(): – How can I fix it?, by RossMitchell

    Whatever it is, it is a problem with code within your there “jobeleon”. Suggest that you seek support with the theme author or vendor.
    The code looks ok to me, however it uses an unusual positional argument syntax (e.g. %4s) which is involved in a recent sql injection security bug, it could be that the changed checking for this is tripping you up, combined with the call to sprintf on one of the arguments.
    If you want to tinker with the code then I would suggest that you remove this nested sprintf call like this:

    $newvar = sprintf(__('View all posts by %s', 'jobeleon'), get_the_author());
    printf( ..........

    Then put esc_attr($newvar) in the argument list.

    Reply To: Warning: sprintf(): – How can I fix it?
     
    #1

Share This Page

Monarch Social Sharing Plugin