Make WordPress Core

Ticket #49934: 49934.patch

File 49934.patch, 1.2 KB (added by mukesh27, 5 years ago)

Initial patch.

  • wp-admin/includes/class-wp-site-health.php

     
    613613                                                        /* translators: 1: The currently active theme. 2: The active theme's parent theme. */
    614614                                                        __( 'To enhance your site’s security, we recommend you remove any themes you’re not using. You should keep your current theme, %1$s, and %2$s, its parent theme.' ),
    615615                                                        $active_theme->name,
    616                                                         $active_theme->parent()->name
     616                                                        ( $active_theme->parent_theme ) ? $active_theme->parent_theme : $active_theme->template
    617617                                                )
    618618                                        );
    619619                                } else {
     
    633633                                                        __( 'To enhance your site’s security, we recommend you remove any themes you’re not using. You should keep %1$s, the default WordPress theme, %2$s, your current theme, and %3$s, its parent theme.' ),
    634634                                                        $default_theme ? $default_theme->name : WP_DEFAULT_THEME,
    635635                                                        $active_theme->name,
    636                                                         $active_theme->parent()->name
     636                                                        ( $active_theme->parent_theme ) ? $active_theme->parent_theme : $active_theme->template
    637637                                                )
    638638                                        );
    639639                                }