Opened 6 years ago
Closed 6 years ago
#45416 closed enhancement (fixed)
Docs: PHPDoc correction in wp-admin/includes/misc.php
Reported by: | ishitaka | Owned by: | desrosj |
---|---|---|---|
Milestone: | 5.1 | Priority: | normal |
Severity: | minor | Version: | 4.9.6 |
Component: | Privacy | Keywords: | has-patch commit |
Focuses: | docs | Cc: |
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.
6 years ago
#3
@
6 years ago
- Milestone changed from Awaiting Review to 5.0.1
- Version set to 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