WordPress.org

Making WordPress.org


Ignore:
File:
1 edited

Legend:

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

    r7916 r10783  
    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        }
     
    5454
    5555        // Second link is always link to handbook home page.
     56        $handbook_name = wporg_get_current_handbook_name();
    5657        if ( wporg_is_handbook_landing_page() ) {
    57             $links[] = __( 'Handbook', 'wporg' );
     58            $links[] = $handbook_name;
    5859        } else {
    59             $links[] = sprintf( '<a href="%s">%s</a>', esc_url( wporg_get_current_handbook_home_url() ), __( 'Handbook', 'wporg' ) );
     60            $links[] = sprintf( '<a href="%s">%s</a>', esc_url( wporg_get_current_handbook_home_url() ), $handbook_name );
    6061        }
    6162
Note: See TracChangeset for help on using the changeset viewer.