WordPress.org

Make WordPress Core

Opened 23 months ago

Last modified 9 months ago

#42783 new defect (bug)

set_query_var should have a helpful inline doc description

Reported by: webdevmattcrom Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: General Keywords: has-patch
Focuses: docs Cc:
PR Number:

Description

set_query_var() does not have any description to help developers understand the purpose and/or context of this function. Adding inline docs will also help ensure the DevHub is accurate.

See here: https://core.trac.wordpress.org/browser/tags/4.9/src/wp-includes/query.php#L73

Suggested Description:
"set_query_var is a wrapper function to the global $wp_query that uses the method set."

Attachments (1)

ticket#42783.patch (375 bytes) - added by webdevmattcrom 23 months ago.
Patch for ticket #42783 -- adds inline doc per suggestion

Download all attachments as: .zip

Change History (3)

@webdevmattcrom
23 months ago

Patch for ticket #42783 -- adds inline doc per suggestion

#1 @stevenlinx
22 months ago

  • Keywords has-patch added

#2 @pento
9 months ago

  • Version trunk deleted
Note: See TracTickets for help on using tickets.