Habari\Update::add_theme PHP Метод

add_theme() приватный статический Метод

Add the currently active theme's information to the list of beacons to check for updates.
private static add_theme ( )
    private static function add_theme()
    {
        // get the active theme
        $theme = Themes::get_active_data(true);
        // name and version are required in the XML file, make sure GUID is set
        if (isset($theme['info']->guid)) {
            Update::add($theme['info']->name, $theme['info']->guid, $theme['info']->version);
        }
    }