Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #53900, comment 1


Ignore:
Timestamp:
08/09/2021 02:52:48 PM (4 years ago)
Author:
SergeyBiryukov
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #53900, comment 1

    initial v1  
    33Per the [https://make.wordpress.org/core/handbook/best-practices/inline-documentation-standards/php/#1-functions-class-methods WordPress documentation standards], `@return void` should not be used outside of the default bundled themes, so most of the core functions don't have that tag if the function does not return anything.
    44
    5 There is an exception for functions like `wp_title()`, which can either return a string or display it, it which case they have `@return string|void`.
     5There is an exception for functions like `wp_title()`, which can either return a string or display it, in which case they have `@return string|void`.