Make WordPress Core

Ticket #48570: 48570.patch

File 48570.patch, 980 bytes (added by diddledani, 5 years ago)

Patch to set the return type to bool

  • wp-admin/includes/class-theme-upgrader.php

    From b456b0f89da72cf764e18c167712d67485dfe357 Mon Sep 17 00:00:00 2001
    From: Daniel Llewellyn <daniel@bowlhat.net>
    Date: Tue, 12 Nov 2019 17:10:02 +0000
    Subject: [PATCH] Fix return type in class-theme-upgrader
    
    Signed-off-by: Daniel Llewellyn <daniel@bowlhat.net>
    ---
     wp-admin/includes/class-theme-upgrader.php | 2 +-
     1 file changed, 1 insertion(+), 1 deletion(-)
    
    diff --git a/wp-admin/includes/class-theme-upgrader.php b/wp-admin/includes/class-theme-upgrader.php
    index e9cb743e40..5abf380324 100644
    a b class Theme_Upgrader extends WP_Upgrader { 
    9191         * @param bool  $install_result
    9292         * @param array $hook_extra
    9393         * @param array $child_result
    94          * @return type
     94         * @return bool
    9595         */
    9696        public function check_parent_theme_filter( $install_result, $hook_extra, $child_result ) {
    9797                // Check to see if we need to install a parent theme