array_reverse stopped working in WordPress 4.4
-
Hello! A few years in my functions.php was written this mod:
if (! function_exists ('iweb_reverse_comments')) { ????function iweb_reverse_comments ($ comments) { ????????return array_reverse ($ comments); ????} } add_filter ('comments_array', 'iweb_reverse_comments');
This allowed me to display the comments in reverse order:
Page 1:
Most new comment
….
Page 10:
The oldest commentAfter upgrading to WordPress 4.4 this code stopped working (it worked fine on version 4.3) and WordPress now displays on the first page oldest comments:
Page 1:
The oldest comment
….
Page 10:
Most new commentDiscussion Settings in an administrative panel does not help.
If this function can not be converted to work with WordPress 4.4 – who can tell where I can change the query that selects comments and add the ‘ORDER BY comment_id DESC’?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘array_reverse stopped working in WordPress 4.4’ is closed to new replies.