WordPress.org

Make WordPress Core

#43682 closed enhancement (fixed)

Document $relative_file, $stylesheet global in wp_print_theme_file_tree()

Reported by: mukesh27 Owned by: desrosj
Milestone: 5.1 Priority: normal
Severity: normal Version: 4.9
Component: Themes Keywords: has-patch
Focuses: docs Cc:
PR Number:

Description

global $relative_file, $stylesheet are used but it is not mentioned in the documentation of the wp_print_theme_file_tree() function.

Attachments (2)

43682.patch (572 bytes) - added by mukesh27 22 months ago.
43682.diff (1.8 KB) - added by desrosj 13 months ago.

Download all attachments as: .zip

Change History (7)

@mukesh27
22 months ago

#1 @mukesh27
22 months ago

  • Keywords has-patch added

#2 @SergeyBiryukov
22 months ago

  • Component changed from General to Themes
  • Milestone changed from Awaiting Review to 5.0

#3 @pento
16 months ago

  • Milestone changed from 5.0 to 5.1

@desrosj
13 months ago

#4 @desrosj
13 months ago

  • Version changed from trunk to 4.9

43682.diff fixes the alignment of the parameters and makes the descriptions a bit more detailed.

#5 @desrosj
13 months ago

  • Owner set to desrosj
  • Resolution set to fixed
  • Status changed from new to closed

In 44477:

Docs: Specify missing global variables used in wp_print_theme_file_tree().

The $relative_file and $stylesheet variables are used in the wp_print_theme_file_tree() function but were not noted within the inline documentation.

Props mukesh27, desrosj,
Fixes #43682.

Note: See TracTickets for help on using tickets.