Make WordPress Core

Changeset 53300


Ignore:
Timestamp:
04/28/2022 09:47:19 AM (3 years ago)
Author:
johnbillion
Message:

Docs: Various docblock corrections.

See #54729

Location:
trunk/src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-cron.php

    r51537 r53300  
    5555 * @global wpdb $wpdb WordPress database abstraction object.
    5656 *
    57  * @return string|false Value of the `doing_cron` transient, 0|false otherwise.
     57 * @return string|int|false Value of the `doing_cron` transient, 0|false otherwise.
    5858 */
    5959function _get_cron_lock() {
  • trunk/src/wp-includes/general-template.php

    r53125 r53300  
    13161316 * @param bool   $display     Optional. Whether to display or retrieve title. Default true.
    13171317 * @param string $seplocation Optional. Location of the separator ('left' or 'right').
    1318  * @return string|void String when `$display` is true, nothing otherwise.
     1318 * @return string|void String when `$display` is false, nothing otherwise.
    13191319 */
    13201320function wp_title( $sep = '»', $display = true, $seplocation = '' ) {
     
    16371637 * @param string $prefix  Optional. What to display before the title.
    16381638 * @param bool   $display Optional. Whether to display or retrieve title. Default true.
    1639  * @return string|void Title when retrieving.
     1639 * @return string|false|void False if there's no valid title for the month. Title when retrieving.
    16401640 */
    16411641function single_month_title( $prefix = '', $display = true ) {
  • trunk/src/wp-includes/post.php

    r53238 r53300  
    33693369     * @since 4.4.0
    33703370     *
    3371      * @param bool|null $delete       Whether to go forward with deletion.
    3372      * @param WP_Post   $post         Post object.
    3373      * @param bool      $force_delete Whether to bypass the Trash.
     3371     * @param WP_Post|false|null $delete       Whether to go forward with deletion. @TODO description
     3372     * @param WP_Post            $post         Post object.
     3373     * @param bool               $force_delete Whether to bypass the Trash.
    33743374     */
    33753375    $check = apply_filters( 'pre_delete_post', null, $post, $force_delete );
     
    63456345     * @since 5.5.0
    63466346     *
    6347      * @param bool|null $delete       Whether to go forward with deletion.
    6348      * @param WP_Post   $post         Post object.
    6349      * @param bool      $force_delete Whether to bypass the Trash.
     6347     * @param WP_Post|false|null $delete       Whether to go forward with deletion. @TODO description
     6348     * @param WP_Post            $post         Post object.
     6349     * @param bool               $force_delete Whether to bypass the Trash.
    63506350     */
    63516351    $check = apply_filters( 'pre_delete_attachment', null, $post, $force_delete );
  • trunk/src/wp-includes/revision.php

    r52433 r53300  
    448448 *
    449449 * @param int|WP_Post $revision_id Revision ID or revision object.
    450  * @return array|false|WP_Post|WP_Error|null Null or WP_Error if error, deleted post if success.
     450 * @return WP_Post|false|null Null or false if error, deleted post object if success.
    451451 */
    452452function wp_delete_post_revision( $revision_id ) {
Note: See TracChangeset for help on using the changeset viewer.