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/api/routes/class-internal-stats.php

    r2985 r2994  
    5252            foreach ( $stats as $stat_name => $value ) {
    5353                if ( 'active_installs' == $stat_name ) {
    54                     $value = $this->sanitize_active_installs( $value, $plugin );
     54                    $value = $this->sanitize_active_installs( $value );
    5555                } elseif ( 'usage' == $stat_name ) {
    5656                    $value = $this->sanitize_usage_numbers( $value, $plugin );
     
    101101     * unless it's the latest branch, or if there's only one branch which is less than 5%.
    102102     *
    103      * @param array   $usage  An array of the branch usage numbers.
    104      * @param WP_Post $plugin The plugin's WP_Post instance.
     103     * @param array    $usage  An array of the branch usage numbers.
     104     * @param \WP_Post $plugin The plugin's WP_Post instance.
    105105     * @return array An array containing the percentages for the given plugin.
    106106     */
Note: See TracChangeset for help on using the changeset viewer.