Opened 8 years ago
Closed 8 years ago
#45416 closed enhancement (fixed)
Docs: PHPDoc correction in wp-admin/includes/misc.php
| Reported by: | ishitaka | Owned by: | desrosj |
|---|---|---|---|
| Priority: | normal | Milestone: | 5.1 |
| Component: | Privacy | Version: | 4.9.6 |
| Severity: | minor | Keywords: | has-patch commit |
| Cc: | Focuses: | docs |
Description
For wp_get_default_privacy_policy_content filter, the parameter type should be added first and then the parameter name.
Currently
@param $content string The default policy content. @param $strings array An array of privacy policy content strings. @param $description bool Whether policy descriptions should be included. @param $blocks bool Whether the content should be formatted for the block editor.
Should be
@param string $content The default policy content. @param array $strings An array of privacy policy content strings. @param bool $description Whether policy descriptions should be included. @param bool $blocks Whether the content should be formatted for the block editor.
Attachments (3)
Change History (11)
This ticket was mentioned in Slack in #core-privacy by desrosj. View the logs.
8 years ago
#3
@
8 years ago
- Milestone Awaiting Review → 5.0.1
- Version → 4.9.6
Thanks for the patches! 45416.2.patch applies to the 5.0 branch for me. When committed, there is a tab after string $content that just needs to be converted to spaces.
Note:
See TracTickets
for help on using tickets.
@ishitaka patch that is added by you is created from old version of WordPress. I have added working patch