Making WordPress.org

Changeset 2972


Ignore:
Timestamp:
04/18/2016 12:01:14 PM (8 years ago)
Author:
obenland
Message:

Plugins Directory: Avoid immediate dependency on Jetpack.

Fixes a fatal error when Jetpack is not activated on the site.

See #1574.

File:
1 edited

Legend:

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

    r2934 r2972  
    171171        }
    172172
    173         // Instantiate our copy of the Jetpack_Search class if
    174         if ( !class_exists( 'Jetpack_Search' ) ) {
     173        // Instantiate our copy of the Jetpack_Search class.
     174        if ( class_exists( 'Jetpack' ) && ! class_exists( 'Jetpack_Search' ) ) {
    175175            require_once( __DIR__ . '/libs/site-search/jetpack-search.php' );
    176176            \Jetpack_Search::instance();
Note: See TracChangeset for help on using the changeset viewer.