We are pleased to announce the last release of AnsPress for this year. Development will resume again after 2nd January.
A major feature AnsPress\Session() is introduced in this release. AnsPress session will be helpful for storing custom session variable of a user. In previous release there was a bug which prevents anonymous users to view their post when new question/answer status is set to moderation. To fix this bug, we need to know that the current user is the original poster but things are complicated when we cannot use PHP session. As you already know that WP does not utilize PHP session, so we have to introduce our custom session handler.
Improved tags field validation and included selectize.js library for better tags suggestion. Apart from this there are few bug fixes which can be found below.
Release details
Source
Download source code.
You can also get it using composer
or git clone
.
Functions
New functions introduced in this release.
Hooks
New actions and filters introduced in this release.
Commits
Total 30 Commits
- Improved test
- Added new argument $manual
- Added $manual argument to answer `submit_answer_form` method.
- Answer template: use translation function
- Buddypress template slip div fix unless max_num_pages equals one its not closing ( #ap-bp-answers and #ap-bp-questions ) div so its crashing template schema.
- Deprecated process_form method
- Don't use ap_ajax action for question, answer and comment form.
- View 23 more
Files
Total 7768 changes
- + 0 - 1activate.php
- + 10 - 7addons/free/buddypress.php
- + 2 - 4addons/free/category.php
- + 1 - 3addons/free/profile.php
- + 1 - 1addons/free/recaptcha/class-captcha.php
- + 3 - 3addons/free/tag.php
- + 3 - 0admin/ajax.php
- View 59 more
Hello @Rahul,
Please check this error report:
https://anspress.io/questions/question/error-at-backend-with-anspress4-1-5/
Alex
They need to know that the current user is the original poster in order to correct a bug, but things get complex when they can’t use PHP sessions.
As you may be aware, WordPress does not use PHP sessions, so they must create their own session handler.