Support » Fixing WordPress » poll_timestamp year

  • The year dropdown on the timestamp only lists years from 200 to the current year. It doesn’t make sense to be able to choose a date in the past. I was attempting to create a poll than would expire in 2008, but 2008 was not in the dropdown. I replaced this code (polls/polls.php – line: 1055):
    for($i = 2000; $i <= $year; $i++) {
    with this:
    for($i = $year; $i <= $year + 5; $i++) {

    I’m not sure if that’s the best fix or if it’s even correct, but it works for me.

Viewing 2 replies - 1 through 2 (of 2 total)
  • This is the very reason I came here right now. Did that work well for you then?

    it has been reported to me quite sometime back, ttp://,1324.0.html (the same fix is there too) and I have already fixed it in the upcoming wp-polls 2.30

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘poll_timestamp year’ is closed to new replies.