Making WordPress.org

Changeset 10780


Ignore:
Timestamp:
03/05/2021 12:48:52 AM (6 years ago)
Author:
coffee2code
Message:

Handbooks, Handbook: If handbook name isn't set, try configured label.

File:
1 edited

Legend:

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

    r10775 r10780  
    117117                $name = get_option( $post_type . '_name' );
    118118
     119                // If handbook name isn't set, try configured label.
     120                if ( ! $raw && ! $name ) {
     121                        $config = WPorg_Handbook_Init::get_handbooks_config( $post_type );
     122                        if ( ! empty( $config['label'] ) ) {
     123                                $name = $config['label'];
     124                        }
     125                }
     126
    119127                // If handbook name isn't set, try root relative site path.
    120128                if ( ! $raw && ! $name ) {
Note: See TracChangeset for help on using the changeset viewer.