Make WordPress Core


Ignore:
Timestamp:
06/15/2021 10:20:54 AM (4 years ago)
Author:
SergeyBiryukov
Message:

Docs: Document the usage of $_wp_current_template_content global in a few block template functions.

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

See #52628.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/block-template.php

    r51003 r51150  
    1212 *
    1313 * @since 5.8.0
     14 *
     15 * @global string $_wp_current_template_content
    1416 *
    1517 * @param string $template  Path to the template. See locate_template().
     
    148150 * @since 5.8.0
    149151 *
    150  * @return string block tempate markup.
     152 * @global string   $_wp_current_template_content
     153 * @global WP_Embed $wp_embed
     154 *
     155 * @return string Block template markup.
    151156 */
    152157function get_the_block_template_html() {
Note: See TracChangeset for help on using the changeset viewer.