WordPress.org

Make WordPress Core

Ticket #48613: 48613.patch

File 48613.patch, 847 bytes (added by diddledani, 2 years ago)

Patch to set return type to void

  • wp-admin/includes/post.php

    From f5faa8bec959144b36a07f484cb49957a927e26b Mon Sep 17 00:00:00 2001
    From: Daniel Llewellyn <daniel@bowlhat.net>
    Date: Wed, 13 Nov 2019 21:03:56 +0000
    Subject: [PATCH] Update wp-admin/includes/post.php
    
    Set return type of `_admin_notice_post_locked` to `void`.
    ---
     wp-admin/includes/post.php | 2 +-
     1 file changed, 1 insertion(+), 1 deletion(-)
    
    diff --git a/wp-admin/includes/post.php b/wp-admin/includes/post.php
    index e99b9de6a4..5646af7322 100644
    a b function wp_set_post_lock( $post_id ) { 
    16321632 * Outputs the HTML for the notice to say that someone else is editing or has taken over editing of this post.
    16331633 *
    16341634 * @since 2.8.5
    1635  * @return none
     1635 * @return void
    16361636 */
    16371637function _admin_notice_post_locked() {
    16381638        $post = get_post();