Making WordPress.org


Ignore:
Timestamp:
12/04/2018 07:12:53 PM (6 years ago)
Author:
coffee2code
Message:

Handbook plugin: Disable glossary functionality for multi-handbook sites until support is added.

See #2388.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/handbook/inc/glossary.php

    r2226 r7935  
    77
    88    static function init() {
     9        // Disable glossary functionality for multi-handbook sites until
     10        // such support is added.
     11        if ( count( WPorg_Handbook_Init::get_post_types() ) > 1 ) {
     12            return;
     13        }
     14
    915        add_action( 'init', array( __CLASS__, 'init_hook' ) );
    1016        add_action( 'load-edit.php', array( __CLASS__, 'load_edit_php' ) );
Note: See TracChangeset for help on using the changeset viewer.