Changeset 3557 for sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/libs/site-search/jetpack-search.php
- Timestamp:
- 06/22/2016 03:22:11 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/libs/site-search/jetpack-search.php
r3550 r3557 255 255 $version_cutoff = ( defined('WP_CORE_STABLE_BRANCH') ? sprintf( '%0.1f', WP_CORE_STABLE_BRANCH - 0.5) : '4.0' ); 256 256 257 // If the request comes from WordPress and the major version string looks sane, use a more specific version constraint258 if ( preg_match( '|WordPress/(\d+[.]\d+)|', $_SERVER['HTTP_USER_AGENT'], $matches ) ) {259 if ( $matches[1] >= $version_cutoff && $matches[1] <= WP_CORE_STABLE_BRANCH ) {260 $version_cutoff = sprintf( '%0.1f', $matches[1] - 0.2 );261 }262 }263 264 257 // Start building the WP-style search query args 265 258 // They'll be translated to ES format args later
Note: See TracChangeset
for help on using the changeset viewer.