Opened 18 months ago
Last modified 18 months ago
#63315 new defect (bug)
Docs: Improve the `prepare()` function inline docs
| Reported by: | dilipbheda | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | Awaiting Review |
| Component: | Query | Version: | |
| Severity: | normal | Keywords: | has-patch close |
| Cc: | Focuses: | docs |
Description
I've reviewed the wpdb::prepare() function and made the following improvements to its inline documentation:
- Removed the duplicate mention of the
$argsparameter. - Cleaned up the description by removing an unnecessary hyphen from the
$queryparameter.
Attachments (1)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Hi there, thanks for the patch!
The current description seems correct as is:
$argsand...$argsparameters aim to differentiate between calling the method with an array of arguments to substitute into the query's placeholders and passing a variable number of individual arguments. The former part of the description should not be removed.sprintf()-likewording is correct, the hyphen is used to join the two words together as an adjective.