Blue Presley
asked 11 years ago

In the DWQA plugin, in ../inc/shortcodes.php around line 443, I made the following change:

if(count($followers) == 1){
echo count($followers) . ‘ ‘ . __(‘person is following following this question.’, ‘dwqa’);
} else {
echo count($followers) . ‘ ‘ . __(‘people are following this question.’, ‘dwqa’);
}

Now, when only 1 person is following a question, it says “1 person is following this question.” When more than 1 person is following the question it says “$count people are following…”
While this makes a lot more sense grammatically, I still have an issue. The code shows on the the list of questions and other pages. Still trying to figure out how to prevent that (currently, CSS will be my solution, but that less than desirable)

Powered by DW Question & Answer Pro