[wp-trac] [WordPress Trac] #36612: Add Ratings into the Add New Theme page

WordPress Trac noreply at wordpress.org
Mon Jul 16 02:20:48 UTC 2018


#36612: Add Ratings into the Add New Theme page
-------------------------+---------------------
 Reporter:  dd32         |       Owner:  (none)
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  4.9.9
Component:  Customize    |     Version:
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |     Focuses:  ui
-------------------------+---------------------

Comment (by dd32):

 Replying to [comment:20 celloexpressions]:
 > @dd32 can you weigh in on the preferred strategy and adjust the .org
 themes API as needed? This would be a nice improvement to bring into a
 minor release in the near future, depending on any API needs.

 Lets add the `reviews_url` field to the API so as to not need to manually
 build it.

 https://meta.trac.wordpress.org/changeset/7467 adds the support for it.

 It's included by default in the `info/1.2` API but 4.9 (which uses the
 `info/1.1` api) will need to pass the `reviews_url` field - you'll find
 it's already sending the `num_ratings` field for that.

 Here's example requests:
  - 1.2:
 https://api.wordpress.org/themes/info/1.2/?action=theme_information&request[slug]=twentysixteen
 (Should be used in 5.0/trunk and above)
  - 1.1:
 https://api.wordpress.org/themes/info/1.1/?action=theme_information&request[slug]=twentysixteen&request[fields][reviews_url]=1
 (Must specify extra field, ie. 4.9 and below)

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/36612#comment:21>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list