Make WordPress Core


Ignore:
Timestamp:
01/29/2020 12:43:23 AM (6 years ago)
Author:
SergeyBiryukov
Message:

Docs: Improve inline comments per the documentation standards.

Includes minor code layout fixes for better readability.

See #48303.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-post-type.php

    r46586 r47122  
    424424        $args['name'] = $this->name;
    425425
    426         // If not set, default to the setting for public.
     426        // If not set, default to the setting for 'public'.
    427427        if ( null === $args['publicly_queryable'] ) {
    428428            $args['publicly_queryable'] = $args['public'];
    429429        }
    430430
    431         // If not set, default to the setting for public.
     431        // If not set, default to the setting for 'public'.
    432432        if ( null === $args['show_ui'] ) {
    433433            $args['show_ui'] = $args['public'];
    434434        }
    435435
    436         // If not set, default to the setting for show_ui.
     436        // If not set, default to the setting for 'show_ui'.
    437437        if ( null === $args['show_in_menu'] || ! $args['show_ui'] ) {
    438438            $args['show_in_menu'] = $args['show_ui'];
    439439        }
    440440
    441         // If not set, default to the whether the full UI is shown.
     441        // If not set, default to the setting for 'show_in_menu'.
    442442        if ( null === $args['show_in_admin_bar'] ) {
    443443            $args['show_in_admin_bar'] = (bool) $args['show_in_menu'];
    444444        }
    445445
    446         // If not set, default to the setting for public.
     446        // If not set, default to the setting for 'public'.
    447447        if ( null === $args['show_in_nav_menus'] ) {
    448448            $args['show_in_nav_menus'] = $args['public'];
Note: See TracChangeset for help on using the changeset viewer.