Making WordPress.org

Changeset 1427


Ignore:
Timestamp:
03/19/2015 08:43:38 PM (12 years ago)
Author:
obenland
Message:

WP.org Themes: Return 15 themes per request.

This sets posts_per_page to 15, overwriting the default 100 set by the JS
handler.

Since posts_per_page was set without a corresponding offset, an offset of 100
was assumed which returned the wrong results.

Fixes #965.

File:
1 edited

Legend:

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

    r1416 r1427  
    687687                'theme_url'    => true,
    688688        ) );
    689         $args = wp_parse_args( $request, array(
    690                 'per_page' => 20,
    691         ) );
     689        $args = wp_parse_args( array(
     690                'per_page' => 15,
     691        ), $request);
    692692
    693693        include_once API_WPORGPATH . 'themes/info/1.0/class-themes-api.php';
Note: See TracChangeset for help on using the changeset viewer.