Making WordPress.org

Changeset 5177


Ignore:
Timestamp:
03/28/2017 03:20:36 AM (7 years ago)
Author:
tellyworth
Message:

Plugin directory search: use SSL for API calls, and a better user agent string.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/libs/site-search/jetpack-search.php

    r5169 r5177  
    224224     */
    225225    public function search( $es_args ) {
    226         $service_url = 'http://public-api.wordpress.com/rest/v1/sites/' . $this->jetpack_blog_id . '/search';
     226        $service_url = 'https://public-api.wordpress.com/rest/v1/sites/' . $this->jetpack_blog_id . '/search';
    227227        $json_es_args = json_encode( $es_args );
    228228        $cache_key = md5( $json_es_args );
     
    242242                    ),
    243243                    'timeout' => 10,
    244                     'user-agent' => 'jetpack_search',
     244                    'user-agent' => 'WordPress.org/jetpack_search',
    245245                    'body' => $json_es_args,
    246246                ) );
Note: See TracChangeset for help on using the changeset viewer.