Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.

Compatibility issue of Q2A V1.7-beta

0 votes
339 views
asked Dec 21, 2014 in Q2A Core by sama55
Two functions in qa-filter-basic.php were deleted in Q2A V1.7-beta. Users who are using these functions will lost compatibility. You need to create the same function in your addon. This is ridiculous.

https://github.com/q2a/question2answer/issues/182
Q2A version: 1.7 beta2
commented Dec 23, 2014 by truthonlytruth
I think; as developer or creator of this script, you guys need to tone-down a little bit when you talk about future of the script... more friendly environment.... :)

1 Answer

+3 votes
answered Dec 22, 2014 by Scott

Sorrry you feel that way, but as I said on the Github ticket those functions were clearly marked as being just for that plugin. If you do non-standard things in plugins there is always a possibility something could break in a future version.

In your plugin you are not using the error messages it returns so you don't even need the function call, you can just replace it with a simple if clause checking the length.

$length = qa_strlen($checkvalue);
if ($length < 1 || $length > QA_DB_MAX_CONTENT_LENGTH) {
  // errors
}
commented Dec 22, 2014 by sama55
edited Dec 22, 2014 by sama55
It is not a problem related only to my plugin. It is related to all of the users who have hack Q2A. Whether Gideon does not return to the development anymore?
commented Dec 29, 2014 by sama55
Thanks Scott.
...