[wp-trac] [WordPress Trac] #49477: Update inline documentation for WPDB
WordPress Trac
noreply at wordpress.org
Wed Feb 19 15:46:49 UTC 2020
#49477: Update inline documentation for WPDB
-------------------------+-----------------------------
Reporter: theMikeD | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Comments | Version: trunk
Severity: normal | Keywords: has-patch
Focuses: docs |
-------------------------+-----------------------------
Having accurate documentation is critical for developers, especially for
complex and core functionality such as the `wpdb` class. We on the
documentation team have been working to update the docs, and it is now
`wpdb`'s turn to be reviewed.
The `wpdb` page in the official docs includes parts taken from the code,
some of which is either formatted incorrectly, misleading, or incorrect.
This ticket will track the update to the code to fix the inline docs and
docblocks so that its
documentation(https://developer.wordpress.org/reference/classes/wpdb/) is
accurate.
The changes include:
- proper spacing (eg. ` *@since 3.4.0` vs ` * @since 3.4.0`
- proper order of docblock elements (see
https://make.wordpress.org/core/handbook/best-practices/inline-
documentation-standards/php/#1-functions-class-methods)
- consistent language (eg. 'last' vs 'previous')
- use of 80char width
- proper punctuation (eg. all comments end with a period)
- in some cases, editing for clarity (specifically the class description)
Note that there are only comment changes in this patch.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/49477>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list