WordPress.org

Making WordPress.org

Opened 4 years ago

Closed 4 years ago

#1174 closed defect (fixed)

'Ideas' Star Rating Not Functional

Reported by: atomicjack Owned by: coffee2code
Milestone: Priority: normal
Component: General Keywords: needs-patch
Cc:

Description

On the Ideas page, it seems the star rating doesn't function.

Hovering over the stars doesn't allow you to rate the idea.

https://wordpress.org/ideas/

Browser: 45.0.2454.26 beta

Change History (6)

#1 @Craig Ralston
4 years ago

Not entirely sure that is expected functionality on that screen. If you actually look at one of the idea posts, you can rate it in there (see https://wordpress.org/ideas/topic/better-wordpress-importexport). This makes sense to me since you should probably read the idea description and comments before just arbitrarily tossing ratings around based solely on the title. Just my thoughts on it.

CORRECTION: The star ratings actually do not appear to be working in Chrome when inside an idea single post, a message appears "This page is trying to load scripts from unauthenticated sources." Allowing the script to run anyway still has no effect.

Last edited 4 years ago by Craig Ralston (previous) (diff)

#2 @Craig Ralston
4 years ago

Console reads:
Mixed Content: The page at 'https://wordpress.org/ideas/topic/add-image-caption-hook' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://wordpress.org/ideas/bb-admin/admin-ajax.php'. This request has been blocked; the content must be served over HTTPS.

#3 @Craig Ralston
4 years ago

So it looks like the culprit here is

$.post( 'http://wordpress.org/ideas/bb-admin/admin-ajax.php', form.serialize(), function( data, textStatus )

When queried directly, it properly 301's but it seems that the browser is ignoring that, should we just use the proper protocol here?

This ticket was mentioned in Slack in #meta by craigralston. View the logs.


4 years ago

#5 @coffee2code
4 years ago

  • Owner set to coffee2code
  • Status changed from new to accepted

#6 @coffee2code
4 years ago

  • Resolution set to fixed
  • Status changed from accepted to closed

Fixed in [10787-dotorg]:

Ideas: Fix star rating by Ajax-POSTing to admin-ajax.php over HTTPS.

Fixes #1174.
Props craig-ralston.
Note: See TracTickets for help on using tickets.