jtsroberts
Forum Replies Created
-
Yep, I did see that. I’ve updated jQuery to 3.5.1 and all is working fine now.
Thanks for your help 🙂
Forum: Fixing WordPress
In reply to: Custom order of posts arrayPerfect 🙂
Even works with the My Page Order plugin.
Forum: Plugins
In reply to: Add Detail To Moderate Comment EmailHi again,
I have an update. I have chosen not to go down the road of the member_number going into the database. Instead, I have added the field to the comments form. I then set a cookie with the member number in it (in the file wp-comments-post.php) added at line 13:
if (!isset($_COOKIE['member_number'])) { setcookie('member_number', $_POST['member_number']); }This seems to work ok. Then in pluggable.php, I have:
$member_number = $_COOKIE['member_number'];which is just below the nocache_headers() function.
Only 1 problem, the first time a user submits a comment, the member_number is not being printed into the email. If I submit another comment, the email gets the member_number from the cookie no worries. If I change the member_number value, the email value for member_number is always 1 post behind.
What this tells me is that the code that sets the member_number in the cookie is not occuring in the right place – ie. it is happening too late. I am assuming it has something to do with headers.
Any help would be greatly appreciated.