Making WordPress.org


Ignore:
Timestamp:
04/12/2016 01:41:59 AM (9 years ago)
Author:
tellyworth
Message:

Hack in an incomplete search implementation using Greg's Jetpack_Search class.

There's still more to be done on both sides of the API, but this at least proves the mechanism works.

File:
1 edited

Legend:

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

    r2930 r2934  
    170170            add_filter( 'option_siteurl', array( $this, 'rosetta_network_localize_url' ) );
    171171        }
     172
     173        // Instantiate our copy of the Jetpack_Search class if
     174        if ( !class_exists( 'Jetpack_Search' ) ) {
     175            require_once( __DIR__ . '/libs/site-search/jetpack-search.php' );
     176            \Jetpack_Search::instance();
     177        }
    172178    }
    173179
Note: See TracChangeset for help on using the changeset viewer.