Making WordPress.org


Ignore:
Timestamp:
03/04/2021 11:07:04 PM (3 years ago)
Author:
coffee2code
Message:

Handbooks, Breadcrumbs: Check that WPorg_Handbook_Pages_Widget class exists before using it.

File:
1 edited

Legend:

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

    r7916 r10756  
    3030    public static function do_init() {
    3131        // Note if the WPorg_Handbook_Pages_Widget widget is in use.
    32         if ( is_active_widget( false, false, WPorg_Handbook_Pages_Widget::get_widget_id_base(), true ) ) {
     32        if ( class_exists( 'WPorg_Handbook_Pages_Widget' ) && is_active_widget( false, false, WPorg_Handbook_Pages_Widget::get_widget_id_base(), true ) ) {
    3333            self::$using_pages_widget = true;
    3434        }
Note: See TracChangeset for help on using the changeset viewer.