Making WordPress.org


Ignore:
Timestamp:
06/14/2016 10:18:31 AM (8 years ago)
Author:
dd32
Message:

Plugin Directory: Store the internal-use-only active_installs value before sanitization occurs to be used for consistent page ordering.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/api/routes/class-internal-stats.php

    r2994 r3354  
    5252            foreach ( $stats as $stat_name => $value ) {
    5353                if ( 'active_installs' == $stat_name ) {
     54                    // Store an unsanitized private version of the active_installs stat for consistent ordering.
     55                    update_post_meta( $plugin->ID, '_active_installs', wp_slash( $value ) );
     56
    5457                    $value = $this->sanitize_active_installs( $value );
    5558                } elseif ( 'usage' == $stat_name ) {
Note: See TracChangeset for help on using the changeset viewer.