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-admin/edit-form-blocks.php

    r46823 r47122  
    99 */
    1010
    11 // don't load directly
     11// Don't load directly.
    1212if ( ! defined( 'ABSPATH' ) ) {
    1313    die( '-1' );
     
    149149$allowed_block_types = apply_filters( 'allowed_block_types', true, $post );
    150150
    151 // Get all available templates for the post/page attributes meta-box.
    152 // The "Default template" array element should only be added if the array is
    153 // not empty so we do not trigger the template select element without any options
    154 // besides the default value.
     151/*
     152 * Get all available templates for the post/page attributes meta-box.
     153 * The "Default template" array element should only be added if the array is
     154 * not empty so we do not trigger the template select element without any options
     155 * besides the default value.
     156 */
    155157$available_templates = wp_get_theme()->get_page_templates( get_post( $post->ID ) );
    156158$available_templates = ! empty( $available_templates ) ? array_merge(
Note: See TracChangeset for help on using the changeset viewer.