HEX
Server: Apache
System: Linux flamboyant-gauss.194-164-62-186.plesk.page 6.8.0-55-generic #57-Ubuntu SMP PREEMPT_DYNAMIC Wed Feb 12 23:42:21 UTC 2025 x86_64
User: gamesamphora (10001)
PHP: 7.4.33
Disabled: opcache_get_status
Upload Files
File: /var/www/vhosts/amphoragames.com/httpdocs/en/wp-content/plugins/backwpup/inc/class-help.php
<?php

class BackWPup_Help
{
    public static function help()
    {
        if (method_exists(get_current_screen(), 'add_help_tab')) {
            get_current_screen()->add_help_tab([
                'id' => 'plugininfo',
                'title' => __('Plugin Info', 'backwpup'),
                'content' => '<p> ' . str_replace('\"', '"', sprintf(_x('%1$s version %2$s. A project by <a href="https://wp-media.me">WP Media</a>.', 'Plugin name and link; Plugin Version', 'backwpup'), '<a href="' . esc_attr__('http://backwpup.com', 'backwpup') . '">' . BackWPup::get_plugin_data('Name') . '</a>', BackWPup::get_plugin_data('Version'))) . '</p>'
                . '<p>' . esc_html__('BackWPup comes with ABSOLUTELY NO WARRANTY. This is a free software, and you are welcome to redistribute it under certain conditions.', 'backwpup') . '</p>',
            ]);

            $text_help_sidebar = '<p><strong>' . __('For more information:', 'backwpup') . '</strong></p>';
            $text_help_sidebar .= '<p><a href="' . esc_attr__('http://backwpup.com', 'backwpup') . '">' . BackWPup::get_plugin_data('Name') . '</a></p>';
            $text_help_sidebar .= '<p><a href="http://wordpress.org/extend/plugins/backwpup/">' . esc_html__('Plugin on wordpress.org', 'backwpup') . '</a></p>';
            $text_help_sidebar .= '<p><a href="' . esc_attr__('https://backwpup.com/docs/', 'backwpup') . '">' . esc_html__('Manual', 'backwpup') . '</a></p>';

            get_current_screen()->set_help_sidebar($text_help_sidebar);
        }
    }

    /**
     * @static
     *
     * @param array $tab
     */
    public static function add_tab($tab = [])
    {
        if (method_exists(get_current_screen(), 'add_help_tab')) {
            get_current_screen()->add_help_tab($tab);
        }
    }
}