Bug in shortcode.php

Updated on February 24, 2017 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
0 on February 24, 2017

Thanks for the report

  • Liked by
Reply
Cancel
0 on February 24, 2017

Patched! thanks again

  • Liked by
Reply
Cancel
Loading more replies