Fixes #1349 Custom moderation tools confirmation page issues.
Cleans input values.
Fixes #1356 Delete post dialog has too big button padding

Delete post dialog has too big button padding.
Changed to 6px
fixlistsc
remove $plural 's'. That's a language concept, belongs to language file.
And the code didn't work anyway.
File attachment was restricted to .php which wasn't the case in 1.6.
Alternative approach: if it's not a color, it's a file.
theme disporder is mandatory, thus should be updated by default
call update_theme_stylesheet_list() when saving disporders
allow 0 as a valid disporder
Fix #1367

Portal latest threads doesn't select replies and views
https://github.com/mybb/mybb/issues/1367
fix: comma issue in users browsing forum/thread, refs #1365
Fixes #1374
Fix #1377

Missing forum name in email subject.
https://github.com/mybb/mybb/issues/1377
Added a $limit option to find_replace_templatesets

Some plugins need to set a limitation on the number of possible replacements in a template, imagine you want to add a script right after some "</script>", and your template contains two or more "</script>", if you don't specify a limitation, you will get your string inserted twice. A more serious issue happened to me when I tried to replace a whole template (using /.*/s), the replacement got inserted twice, because preg_replace considered even the empty string as a match, I replaced it with /.+/s (one character at least) as a workaround, but it's still not what I should do, because I DO want to allow empty templates to be replaced too, along the non-empty templates to be replaced also, but I want to limit that to ONE remplacement only.
Fixes #1385 functions_modcp - var not an array
Revert "Fixes #1385 functions_modcp - var not an array"

This reverts commit 38d0a22b0f09e1cd36e2a66b3f768a2447fd4451.
Fixes #1369 Empty edit reason field added to post by JavaScript.
Fix #1337

Moves the post title tooltip to post number only.
https://github.com/mybb/mybb/issues/1337
Fix #1398

Missing template in $templatelist.
https://github.com/mybb/mybb/issues/1398
Fix #1400

Changed "Find all" to "Display all". Also modified other dropdown
options for consistency.
https://github.com/mybb/mybb/issues/1400