Making WordPress.org


Ignore:
Timestamp:
04/21/2016 07:41:53 PM (9 years ago)
Author:
obenland
Message:

Plugin Directory: Housekeeping.

  • Updates and corrects doc blocks.
  • Simplifies overqualified class references.
  • Corrects function args and return types.
  • Adds missing labels to input elements.
  • Makes sure variables are set before using them.

See #1584.

File:
1 edited

Legend:

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

    r2991 r2994  
    1616        $post = get_post( $post );
    1717
    18         return get_post_meta( $post->ID, 'active_installs', true );
     18        return (int) get_post_meta( $post->ID, 'active_installs', true );
    1919    }
    2020
     
    149149     *
    150150     * @param \WP_Post|string $plugin An instance of a Plugin post, or the plugin slug.
     151     * @param string          $output Output type. 'html' or 'raw'. Default: 'raw'.
    151152     * @return mixed
    152153     */
     
    218219     *
    219220     * @param \WP_Post|string $plugin An instance of a Plugin post, or the plugin slug.
     221     * @param string          $output Output type. Default: 'raw'.
    220222     * @return mixed
    221223     */
Note: See TracChangeset for help on using the changeset viewer.