Comments (5)
You can overwrite the path
add_filter( 'wp_polls_cookiepath', 'wp_polls_cookiepath' );
function wp_polls_cookiepath() {
return COOKIEPATH;
}
from wp-polls.
Hello Lester,
I see that, but won't it be better if your plugin worked properly from the start and no tweaks would be needed?
Thanks,
Martin
from wp-polls.
I am not too sure of the impact of SITECOOKIEPATH vs COOKIEPATH, since all the while I have been using SITECOOKIEPATH and so far you are the only person reported this. So I rather be cautious and not change anything that drastic before knowing more. I just provide you the solution to get what you need.
from wp-polls.
= Version 2.65 =
* NEW: Use Dashicons
* NEW: Supports TinyMCE 4.0 For WordPress 3.9
* NEW: Added Poll ID after adding it
* FIXED: Use SITECOOKIEPATH instead of COOKIEPATH.
* FIXED: Use http://ipinfo.io instead of http://ws.arin.net to get check IP information.
* FIXED: Wrapped all JS function in jQuery.ready(). It is ugly, but it will do till I have time to rewrite it.
* FIXED: Add INDEX for wp_pollsip: pollip_ip_qid (pollip_ip, pollip_qid) to prevent full table scan. Thanks archon810 from AndroidPolice.
I can't remember why I change it because it is ages ago, but before that it was on COOKIEPATH
from wp-polls.
Hello Lester,
my guess is that somebody had COOKIEPATH broken on their site but SITECOOKIEPATH set properly.
wp_set_comment_cookies() seems to work with COOKIEPATH: https://github.com/WordPress/WordPress/blob/master/wp-includes/comment.php#L515-L517
So I'm thinking perhaps the issue was with admin-ajax.php.
WordPress login seems to be setting the cookie for both, you could be doing something similar in your plugin: https://github.com/WordPress/WordPress/blob/master/wp-login.php#L415-L417
Thanks,
Martin
from wp-polls.
Related Issues (20)
- Deregister plugin CSS HOT 1
- Cant create poll
- Multi vote problem HOT 1
- Button color and text not visable HOT 1
- Can't access to "Manage polls" HOT 1
- Ajax on password secured wp-admin folder HOT 2
- Add hooks for all templates rather than just voting form header, body & footer HOT 3
- All poll options returning to "No Poll Option Updated"
- 100% result for last option of new poll in Archive polls
- polls_archive() isn't running the template filters HOT 1
- Poll not appearing on mobile version of site
- PollsWidget not working in new Block-Widget-Area
- [Question] Token based poll concept?
- Admin are shows poll link but 404's
- Feature request: Add box to input name and email when submitting
- Feature Request: GamiPress integration
- Question: dynamic poll HOT 1
- Include a shortcode or/and function to get the latest poll
- Feature proposal - Use of post type Objects as answers HOT 2
- Customize the output of POLL_START_DATE and POLL_END_DATE HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wp-polls.