Changeset 5315 for sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/class-plugin-directory.php
- Timestamp:
- 04/10/2017 09:53:03 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/class-plugin-directory.php
r5312 r5315 470 470 471 471 // Instantiate our copy of the Jetpack_Search class. 472 if ( class_exists( 'Jetpack' ) && ! class_exists( 'Jetpack_Search' )473 && ! isset( $_GET['s'] ) ) { // Don't run the ES query if we're going to redirect to the pretty search URL472 if ( class_exists( 'Jetpack' ) && \Jetpack::get_option( 'id' ) && ! class_exists( 'Jetpack_Search' ) 473 && ! isset( $_GET['s'] ) ) { // Don't run the ES query if we're going to redirect to the pretty search URL 474 474 require_once( __DIR__ . '/libs/site-search/jetpack-search.php' ); 475 475 \Jetpack_Search::instance(); … … 813 813 public function bypass_options_cache( $value, $option ) { 814 814 global $wpdb; 815 $value = $wpdb->get_var( 815 $value = $wpdb->get_var( 816 816 $wpdb->prepare( 817 "SELECT option_value FROM $wpdb->options WHERE option_name = %s LIMIT 1", 817 "SELECT option_value FROM $wpdb->options WHERE option_name = %s LIMIT 1", 818 818 $option 819 819 ) … … 1025 1025 die(); 1026 1026 } 1027 1027 1028 1028 // We've disabled WordPress's default 404 redirects, so we'll handle them ourselves. 1029 1029 if ( is_404() ) { … … 1189 1189 /** 1190 1190 * Create a new post entry for a given plugin slug. 1191 * 1191 * 1192 1192 * @static 1193 1193 *
Note: See TracChangeset
for help on using the changeset viewer.