[wp-trac] [WordPress Trac] #26774: Move wp_star_rating() to be more accessible on the front end
WordPress Trac
noreply at wordpress.org
Sun Jan 5 12:45:28 UTC 2014
#26774: Move wp_star_rating() to be more accessible on the front end
-------------------------+-----------------------------
Reporter: dgwyer | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Formatting | Version: trunk
Severity: normal | Keywords:
-------------------------+-----------------------------
This is a great little function that would be useful on the front end for
all sorts of things. There are many star rating Plugins out there but I'd
prefer to use the core WordPress function.
At the moment wp_star_rating() is in /wp-admin/includes/template.php which
is a pretty big file to include on every front end page (73 KB) and
contains mostly functions that would never conceivably be used on the
front end.
Is there a better location for wp_star_rating() that would make it more
accessible for front end for developers?
BTW - I noticed the Codex page needs updating as the source file link
incorrectly points to wp-admin/includes/formatting.php, which makes the
guide for using wp_star_rating() on the front end invalid.
http://codex.wordpress.org/Function_Reference/wp_star_rating
--
Ticket URL: <https://core.trac.wordpress.org/ticket/26774>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list