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/theme-templates.php

    r51149 r51150  
    7373 * @since 5.8.0
    7474 *
     75 * @global string $_wp_current_template_content
     76 *
    7577 * @return void
    7678 */
    7779function the_block_template_skip_link() {
     80    global $_wp_current_template_content;
    7881
    7982    // Early exit if not a block theme.
     
    8386
    8487    // Early exit if not a block template.
    85     global $_wp_current_template_content;
    8688    if ( ! $_wp_current_template_content ) {
    8789        return;
Note: See TracChangeset for help on using the changeset viewer.