Docs: Miscellaneous docblock improvements.

See #53399

Built from https://develop.svn.wordpress.org/trunk@51957


git-svn-id: http://core.svn.wordpress.org/trunk@51546 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
John Blackbourn 2021-10-30 20:17:01 +00:00
parent 4459eaf392
commit c274d3c520
4 changed files with 9 additions and 4 deletions

View File

@ -1521,7 +1521,7 @@ function get_attachment_fields_to_edit( $post, $errors = null ) {
* *
* @global WP_Query $wp_the_query WordPress Query object. * @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. * @param array $errors Errors for attachment, if any.
* @return string * @return string
*/ */

View File

@ -565,7 +565,12 @@ function human_readable_duration( $duration = '' ) {
* *
* @param string $mysqlstring Date or datetime field type from MySQL. * @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. * @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 = '' ) { function get_weekstartend( $mysqlstring, $start_of_week = '' ) {
// MySQL string year. // MySQL string year.

View File

@ -189,7 +189,7 @@ function get_template_part( $slug, $name = null, $args = array() ) {
$templates[] = "{$slug}.php"; $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.2.0
* @since 5.5.0 The `$args` parameter was added. * @since 5.5.0 The `$args` parameter was added.

View File

@ -16,7 +16,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '5.9-alpha-51956'; $wp_version = '5.9-alpha-51957';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.