WPIntell

Source evidence

Plugin not working when config time span

Bainternet Posts Creation Limits · support · 2016-06-19T06:26:00+00:00

complaintsentiment
mediumseverity
0.75relevance
1replies
Evidence onlycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

1 / 1 rows with source links

100.0% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

0 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
mix5003 unresolved
my environment -Apache/2.4.18 (Win32) OpenSSL/1.0.2e -PHP/7.0.6 -10.1.13-MariaDB i think this code maek a bug $time = (isset($arr['time_span']) && $arr['time_span'] != "FOREVER" ) ? " AND TIMEDIFF(NOW(), post_date) < '".$arr['time_span']."'" : ""; TIMEDIFF is return in format ‘1:00:00’ and you use this to compare with number like ‘1:00:00’ < ‘720’. i think you should use this code instead ( add HOUR function before compare) $time = (isset($arr['time_span']) && $arr['time_span'] != "FOREVER" ) ? " AND HOUR(TIMEDIFF(NOW(), post_date)) < '".$arr['time_span']."'" : ""; https://wordpress.org/plugins/bainternet-posts-creation-limits/ work with this code? $time = (isset($arr['time_span']) && $arr['time_span'] != "FOREVER" ) ? " AND HOUR(TIMEDIFF(NOW(), post_date)) < '".$arr['time_span']."'" : "";

Comments

1 shown
amiri81 2017-03-31T20:48:00+00:00

work with this code? $time = (isset($arr['time_span']) && $arr['time_span'] != "FOREVER" ) ? " AND HOUR(TIMEDIFF(NOW(), post_date)) < '".$arr['time_span']."'" : "";