Making WordPress.org


Ignore:
Timestamp:
12/19/2016 07:17:41 AM (8 years ago)
Author:
dd32
Message:

Plugin Directory: Expose Screenshots in the sections section of the API response so WordPress can display them.

See #2112

File:
1 edited

Legend:

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

    r4559 r4560  
    112112            if ( 'reviews' === $field && ! $include ) {
    113113                unset( $response['sections']['reviews'] );
    114             }
    115             if ( 'enhanced_faq' === $field ) {
    116                 if ( $include ) {
    117                      $response['sections']['faq'] = $response['sections']['enhanced_faq'];
    118                 }
    119                 unset( $response['sections']['enhanced_faq'] );
    120114            }
    121115        }
     
    213207     */
    214208    protected function popular_tags_cache_key( $request ) {
    215         return 'hot_tags:' . $request->locale;;
     209        return 'hot_tags:' . $request->locale;
    216210    }
    217211
Note: See TracChangeset for help on using the changeset viewer.