Make WordPress Core

Opened 7 years ago

Closed 6 years ago

#43682 closed enhancement (fixed)

Document $relative_file, $stylesheet global in wp_print_theme_file_tree()

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

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 7 years ago.
43682.diff (1.8 KB) - added by desrosj 6 years ago.

Download all attachments as: .zip

Change History (7)

@mukesh27
7 years ago

#1 @mukesh27
7 years ago

  • Keywords has-patch added

#2 @SergeyBiryukov
7 years ago

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

#3 @pento
6 years ago

  • Milestone changed from 5.0 to 5.1

@desrosj
6 years ago

#4 @desrosj
6 years 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
6 years 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.