Making WordPress.org


Ignore:
Timestamp:
06/09/2016 10:28:14 PM (9 years ago)
Author:
obenland
Message:

Plugin Directory: Docs cleanup.

For a more at ease IDE.

See #1584.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/class-template.php

    r3187 r3326  
    1212     * Returns a string representing the number of active installs for an item.
    1313     *
    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.
    1617     */
    1718    static function active_installs( $full = true, $post = null ) {
     
    6768     * Displays a plugin's rating with the amount of ratings it has received.
    6869     *
    69      * @param \WP_Post|int $post
     70     * @param int|\WP_Post|null $post Optional. Post ID or post object. Defaults to global $post.
    7071     * @return string
    7172     */
    72     public static function get_star_rating( $post = 0 ) {
     73    public static function get_star_rating( $post = null ) {
    7374        $post = get_post( $post );
    7475
     
    8687
    8788    /**
     89     * @param int|\WP_Post|null $post Optional. Post ID or post object. Defaults to global $post.
    8890     * @return array
    8991     */
Note: See TracChangeset for help on using the changeset viewer.