Rating: 5 stars
In database query inside a plugin file is not as per the standard WordPress queries.
In file “\eg-attachments\inc\eg-attachments-public.inc.php” there is a function “record_click”. In this function author is using below query:
$sql = $wpdb->prepare(‘SELECT click_id
,clicks_number FROM wp_eg_attachments_clicks
WHERE click_date=CURRENT_DATE() AND attach_id=%d AND post_id=%d’,
$attach_id, $parent_id);
Just look at the query, author is using “wp_eg_attachments_clicks” for a table. Here table prefix for that table is “wp_” which is not dynamic. Author should use something like below:
$sql = $wpdb->prepare(‘SELECT click_id
,clicks_number FROM ‘.$wpdb->prefix.’eg_attachments_clicks WHERE click_date=CURRENT_DATE() AND attach_id=%d AND post_id=%d’,
$attach_id, $parent_id);
In place of “wp_” we should always use “$wpdb->prefix” in our queries so that our query will not break even change of table prefix by the user from wp-config.php file.
Request to author, please update it in your next release.
Thanks,
Sunil Chaudhary
Rating: 4 stars
Great plugin, simple way to show custom attachments for a post.
]]>Rating: 4 stars
If you don’t need granular access to single files, this is the best one to manage downloads.
Only 4 stars because of they do not update the plugin very often, but actually the plugin still works well with WP 4.0
Rating: 5 stars
I’ve been using this plugin through many wordpress versions and updates to this plugin. I haven’t had any issues in any of the updates to wordpress or to EG-attachments.
Over the last 3 years, the updates continue to improve the usefulness and usability of this plugin. It is an invaluable addition to WordPress for my purposes.
Thank you for your continuing improvements and clear documentations.
Rating: 5 stars
Easy and just what I needed! Also working for me for WordPress 4.1
]]>Rating: 5 stars
Tested many similar plugins and this one was the best for me. Simple install, no problems.
I was up and running in maybe 2 minutes with this. Very happy.
Rating: 5 stars
Powerful and easy. You can make evrything with your attachments (v.2.0)
]]>Rating: 5 stars
Ok Great!
]]>