We are very pleased to announce that AnsPress 4.1.0 has been released. We were working on this release for almost two months. Lots of bug fixes and improvements done. Rather than adding a new feature, we focused on improving the old functionality. Few major changes made to the core are are listed below.
Individual pages
Since initial release, AnsPress was using a single page for rendering its contents and subpages which was causing lots of confusion among developers. Now every subpages of AnsPress is rendered from their own WP page.
Single question
Like AnsPress subpages, single question was also rendered using base page and wasn’t behaving like other single posts. Hence, many 3rd party widgets plugin were not working well in single question page. But this issue is fixed now.
Comments
Improved comments UI and UX. Using modal for new, edit, and listing comments. Previous JavaScript based comment form is replaced by new PHP form class.
Form and Validation
Added new form and validation classes which makes it easy to add new fields.
Rewrite rules
Tidy up rewrite rules and letting WP generate question and answer rules instead of adding it manually using hooks.
Email
We have added the option to notify multiple administrators and options for controlling which users need to be notified. Old text based email template is replaced by HTML templates. Easily edit template using TinyMce editor.
Full changelog and files changed can be found in below sections. Follow this article: Update to AnsPress 4.1.0 for detail instructions. Feel free to contact us if you have any questions about this release. I am grateful to all contributors and beta testers who made this release possible.
Release details
Source
Download source code.
You can also get it using composer
or git clone
.
Notes
Notes, instructions and details about this release.
- Independent WordPress pages for AnsPress pageOctober 28, 2017
- Improved template hierarchy and question permalinkOctober 27, 2017
- Improved comment(s) layout and form. Added anonymous comment posting.October 26, 2017
- New form and validation classes introduced in AnsPress 4.1.0October 23, 2017
Functions
New functions introduced in this release.
Hooks
New actions and filters introduced in this release.
Commits
Total 138 Commits
- HOOK: Added `ap_addon_avatar_colors` to let avatar colors customizable.
- fix
- FIXED: Wrong field type for comment_number
- Load local avatar only if no gravatar exists
- Fixed: If anonymous post, `post_author` get replaced by current user id if `anonymous_name` is empty.
- Allow overriding question moderation message.
- Improved doc comments
- View 131 more
Files
Total 14577 changes
- + 3 - 4activate.php
- + 57 - 30addons/free/avatar.php
- + 0 - 137addons/free/bad-words.php
- + 136 - 186addons/free/category.php
- + 675 - 374addons/free/email.php
- + 332 - 0addons/free/email/class-email.php
- + 20 - 30addons/free/notification.php
- View 128 more