[wp-trac] [WordPress Trac] #41484: PHP 7.1 error in wp_star_rating()
WordPress Trac
noreply at wordpress.org
Sat Jul 29 20:34:28 UTC 2017
#41484: PHP 7.1 error in wp_star_rating()
-------------------------------------+-----------------------------
Reporter: afragen | Owner: SergeyBiryukov
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 4.9
Component: Plugins | Version: trunk
Severity: normal | Resolution: fixed
Keywords: has-patch needs-testing | Focuses: administration
-------------------------------------+-----------------------------
Changes (by SergeyBiryukov):
* owner: => SergeyBiryukov
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"41184"]:
{{{
#!CommitTicketReference repository="" revision="41184"
Plugins: In `wp_star_rating()`, use explicit type casting for `$rating` to
avoid a "non-numeric value encountered" warning in PHP 7.1.
Clarify in the function DocBlock that `$rating` can be a float.
Props afragen.
Fixes #41484.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/41484#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list