id,summary,reporter,owner,description,type,status,priority,milestone,component,resolution,keywords,cc 551,Voting for Code Reference Examples,siobhan,coffee2code,"Now that people can add examples, we should make it possible for people to vote up ones that they think are particularly useful. I suggest that we adopt the approach used by both Stack Exchange and PHP.net, which allows for both upvoting and downvoting. Stack Exchange: [[Image(https://i.cloudup.com/xNtci8-gy3.png)]] PHP.net [[Image(https://i.cloudup.com/MN0qHQ72bK.png)]] The workflow should be as follows: ''Logged in user'' 1. User clicks upvote/downvote 2. Vote counter adjusts accordingly 3. The example with the most votes should rise to the top, and those with the least should be at the bottom (this could just happen on the next page load) ''Logged out user'' 1. User clicks upvote/downvote 2. User is asked to log in to WordPress.org 3. User logs in 4. User is redirected back to the location where they were voting 5. Vote counter adjusts accordingly 6. The example with the most votes should rise to the top, and those with the least should be at the bottom (this could just happen on the next page load)",enhancement,closed,normal,,Developer Hub,fixed,,