Bug in shortcode.php

Updated 3 days ago in Client Document Manager
2 on February 14, 2017

I believe there’s a small bug in your shortcode.php file.

On line 665, you have:


add_user_meta($user_ID, 'last_project', $a['pid']);


The problem is, it’s missing the $unique parameter, so every time the function┬áruns, it creates a duplicate entry in the wp_usermeta table. The correct code should be:

add_user_meta($user_ID, 'last_project', $a['pid'], true);

  • Liked by
Reply

Thanks for the report

  • Liked by
Reply
Cancel

Patched! thanks again

  • Liked by
Reply
Cancel
Loading more replies