WordPress.org

Making WordPress.org

Changeset 1356


Ignore:
Timestamp:
02/28/2015 12:19:07 PM (7 years ago)
Author:
Otto42
Message:

Fix the width of the downloads graph so as not to cut off the latest results. Fixes #903

Location:
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-themes
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-themes/content-single.php

    r1354 r1356  
    5252                    function drawThemeDownloadsChart() {
    5353                        jQuery(document).ready(function($){
    54                             $.getJSON('https://api.wordpress.org/stats/themes/1.0/downloads.php?slug=<?php echo $slug; ?>&limit=730&callback=?', function (downloads) {
     54                            $.getJSON('https://api.wordpress.org/stats/themes/1.0/downloads.php?slug=<?php echo $slug; ?>&limit=365&callback=?', function (downloads) {
    5555                                var data = new google.visualization.DataTable(),
    5656                                    count = 0;
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-themes/functions.php

    r1337 r1356  
    158158        'parent'       => true,
    159159    ) );
     160//  $request['cache_buster'] =1;
    160161    $args = wp_parse_args( $request, array(
    161162        'per_page' => 20,
     
    214215function wporg_themes_ajax_prepare_theme( $theme ) {
    215216    global $themes_allowedtags;
    216 
    217217    if ( empty( $themes_allowedtags ) ) {
    218218        $themes_allowedtags = array(
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-themes/js/theme.js

    r1355 r1356  
    393393            var self = this;
    394394
    395             $.getJSON( 'https://api.wordpress.org/stats/themes/1.0/downloads.php?slug=' + self.model.get( 'id' ) + '&limit=730&callback=?', function( downloads ) {
     395            $.getJSON( 'https://api.wordpress.org/stats/themes/1.0/downloads.php?slug=' + self.model.get( 'id' ) + '&limit=365&callback=?', function( downloads ) {
    396396                var data = new google.visualization.DataTable(),
    397397                    count = 0;
Note: See TracChangeset for help on using the changeset viewer.