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-taxonomy.php

    r46743 r47122  
    284284        $args = array_merge( $defaults, $args );
    285285
    286         // If not set, default to the setting for public.
     286        // If not set, default to the setting for 'public'.
    287287        if ( null === $args['publicly_queryable'] ) {
    288288            $args['publicly_queryable'] = $args['public'];
     
    296296            }
    297297        } else {
    298             // Force query_var to false for non-public taxonomies.
     298            // Force 'query_var' to false for non-public taxonomies.
    299299            $args['query_var'] = false;
    300300        }
     
    315315        }
    316316
    317         // If not set, default to the setting for public.
     317        // If not set, default to the setting for 'public'.
    318318        if ( null === $args['show_ui'] ) {
    319319            $args['show_ui'] = $args['public'];
    320320        }
    321321
    322         // If not set, default to the setting for show_ui.
     322        // If not set, default to the setting for 'show_ui'.
    323323        if ( null === $args['show_in_menu'] || ! $args['show_ui'] ) {
    324324            $args['show_in_menu'] = $args['show_ui'];
    325325        }
    326326
    327         // If not set, default to the setting for public.
     327        // If not set, default to the setting for 'public'.
    328328        if ( null === $args['show_in_nav_menus'] ) {
    329329            $args['show_in_nav_menus'] = $args['public'];
    330330        }
    331331
    332         // If not set, default to the setting for show_ui.
     332        // If not set, default to the setting for 'show_ui'.
    333333        if ( null === $args['show_tagcloud'] ) {
    334334            $args['show_tagcloud'] = $args['show_ui'];
    335335        }
    336336
    337         // If not set, default to the setting for show_ui.
     337        // If not set, default to the setting for 'show_ui'.
    338338        if ( null === $args['show_in_quick_edit'] ) {
    339339            $args['show_in_quick_edit'] = $args['show_ui'];
     
    352352        $args['object_type'] = array_unique( (array) $object_type );
    353353
    354         // If not set, use the default meta box
     354        // If not set, use the default meta box.
    355355        if ( null === $args['meta_box_cb'] ) {
    356356            if ( $args['hierarchical'] ) {
Note: See TracChangeset for help on using the changeset viewer.