Changeset 3326 for sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/class-template.php
- Timestamp:
- 06/09/2016 10:28:14 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/class-template.php
r3187 r3326 12 12 * Returns a string representing the number of active installs for an item. 13 13 * 14 * @param bool $full whether to include "actuve installs" suffix. Default: true. 15 * @return string "1+ million" or "1+ milllion active installs" depending on $full. 14 * @param bool $full Whether to include "active installs" suffix. Default: true. 15 * @param int|\WP_Post|null $post Optional. Post ID or post object. Defaults to global $post. 16 * @return string "1+ million" or "1+ million active installs" depending on $full. 16 17 */ 17 18 static function active_installs( $full = true, $post = null ) { … … 67 68 * Displays a plugin's rating with the amount of ratings it has received. 68 69 * 69 * @param \WP_Post|int $post70 * @param int|\WP_Post|null $post Optional. Post ID or post object. Defaults to global $post. 70 71 * @return string 71 72 */ 72 public static function get_star_rating( $post = 0) {73 public static function get_star_rating( $post = null ) { 73 74 $post = get_post( $post ); 74 75 … … 86 87 87 88 /** 89 * @param int|\WP_Post|null $post Optional. Post ID or post object. Defaults to global $post. 88 90 * @return array 89 91 */
Note: See TracChangeset
for help on using the changeset viewer.