[wp-trac] [WordPress Trac] #28147: No ratings string never used?
WordPress Trac
noreply at wordpress.org
Wed Jan 7 12:47:24 UTC 2015
#28147: No ratings string never used?
--------------------------------------+------------------
Reporter: pavelevap | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 4.2
Component: Themes | Version: 3.9
Severity: normal | Resolution:
Keywords: good-first-bug has-patch | Focuses:
--------------------------------------+------------------
Comment (by kevdotbadger):
Actually, i think there's an even easier way, which is what I think the
original developer intended.
`data.num_ratings` is always a string, which is the obvious problem.
jorbin mentioned amending some code to return the raw count, this actually
exists in `data.rating` (as an int), this is what should be used.
28147.2.diff fixes this.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/28147#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list