Docs: Miscellaneous docblock improvements.

See 


git-svn-id: https://develop.svn.wordpress.org/trunk@51957 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
John Blackbourn 2021-10-30 20:15:59 +00:00
parent 1f1f1d64d8
commit 2716cc52af
3 changed files with 8 additions and 3 deletions
src
wp-admin/includes
wp-includes

@ -1521,7 +1521,7 @@ function get_attachment_fields_to_edit( $post, $errors = null ) {
*
* @global WP_Query $wp_the_query WordPress Query object.
*
* @param int $post_id Optional. Post ID.
* @param int $post_id Post ID.
* @param array $errors Errors for attachment, if any.
* @return string
*/

@ -565,7 +565,12 @@ function human_readable_duration( $duration = '' ) {
*
* @param string $mysqlstring Date or datetime field type from MySQL.
* @param int|string $start_of_week Optional. Start of the week as an integer. Default empty string.
* @return array Keys are 'start' and 'end'.
* @return int[] {
* Week start and end dates as Unix timestamps.
*
* @type int $start The week start date as a Unix timestamp.
* @type int $end The week end date as a Unix timestamp.
* }
*/
function get_weekstartend( $mysqlstring, $start_of_week = '' ) {
// MySQL string year.

@ -189,7 +189,7 @@ function get_template_part( $slug, $name = null, $args = array() ) {
$templates[] = "{$slug}.php";
/**
* Fires before a template part is loaded.
* Fires before an attempt is made to locate and load a template part.
*
* @since 5.2.0
* @since 5.5.0 The `$args` parameter was added.