[wp-trac] [WordPress Trac] #45416: Docs: PHPDoc correction in wp-admin/includes/misc.php

WordPress Trac noreply at wordpress.org
Mon Nov 26 05:54:56 UTC 2018


#45416: Docs: PHPDoc correction in wp-admin/includes/misc.php
-------------------------+-----------------------------
 Reporter:  ishitaka     |      Owner:  (none)
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  Privacy      |    Version:
 Severity:  minor        |   Keywords:  has-patch
  Focuses:               |
-------------------------+-----------------------------
 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.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/45416>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list