Make WordPress Core


Ignore:
Timestamp:
06/16/2021 09:41:44 AM (3 years ago)
Author:
SergeyBiryukov
Message:

Docs: Update syntax for some multi-line comments per the documentation standards.

Follow-up to [51003], [51149].

See #52628.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/theme-templates.php

    r51150 r51168  
    2323    }
    2424
    25     // Template slugs must be unique within the same theme.
    26     // TODO - Figure out how to update this to work for a multi-theme
    27     // environment.  Unfortunately using `get_the_terms` for the 'wp-theme'
    28     // term does not work in the case of new entities since is too early in
    29     // the process to have been saved to the entity.  So for now we use the
    30     // currently activated theme for creation.
     25    /*
     26     * Template slugs must be unique within the same theme.
     27     * TODO - Figure out how to update this to work for a multi-theme environment.
     28     * Unfortunately using `get_the_terms()` for the 'wp-theme' term does not work
     29     * in the case of new entities since is too early in the process to have been saved
     30     * to the entity. So for now we use the currently activated theme for creation.
     31     */
    3132    $theme = wp_get_theme()->get_stylesheet();
    3233    $terms = get_the_terms( $post_ID, 'wp_theme' );
Note: See TracChangeset for help on using the changeset viewer.