Changeset 2994 for sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/api/routes/class-internal-stats.php
- Timestamp:
- 04/21/2016 07:41:53 PM (9 years ago)
- 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 52 52 foreach ( $stats as $stat_name => $value ) { 53 53 if ( 'active_installs' == $stat_name ) { 54 $value = $this->sanitize_active_installs( $value , $plugin);54 $value = $this->sanitize_active_installs( $value ); 55 55 } elseif ( 'usage' == $stat_name ) { 56 56 $value = $this->sanitize_usage_numbers( $value, $plugin ); … … 101 101 * unless it's the latest branch, or if there's only one branch which is less than 5%. 102 102 * 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. 105 105 * @return array An array containing the percentages for the given plugin. 106 106 */
Note: See TracChangeset
for help on using the changeset viewer.