Making WordPress.org


Ignore:
Timestamp:
12/19/2016 07:00:06 AM (7 years ago)
Author:
dd32
Message:

Plugin Directory: Allow us to return the FAQ section with <h4> instead of <dl> for existing WordPress versions.
Also fixes the hot_tags endpoint to work correctly.

See #2112.

File:
1 edited

Legend:

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

    r4125 r4559  
    2525     */
    2626    function popular_tags( $request ) {
    27         $terms = get_terms( 'plugin_tags', array( 'hide_empty' => false, 'orderby' => 'count', 'order' => 'DESC' ) );
     27        $terms = get_terms( 'plugin_tags', array(
     28            'hide_empty' => true,
     29            'orderby' => 'count',
     30            'order' => 'DESC',
     31            'number' => 1000
     32        ) );
    2833
    2934        $response = array();
Note: See TracChangeset for help on using the changeset viewer.