BUG: BP Daily Theme – hard codes link to child.css instead of calling wp_enqueue_style

The function bpdaily_themeoptions_output() (in functions.php) hard codes 2 stylesheets instead of following best practice.

This makes it impossible for child themes (or the BP Daily theme itself) to version the child.css file and force an update (without overriding the whole function).

It also means the browser will always request the child.css file, even if it isn’t included / needed by a child theme.

if ( ! function_exists( 'bpdaily_themeoptions_output' ) ) :
function bpdaily_themeoptions_output(){
include (get_template_directory() . '/library/options/options.php');
$get_current_scheme = get_option('dev_buddydaily_custom_style');
if(($get_current_scheme == '') || ($get_current_scheme == 'default.css')) {
print "<style type='text/css' media='screen'>";
include (get_template_directory() . '/library/options/theme-options.php');
print "</style>";
} else { ?>
<link rel="stylesheet" href="<?php echo get_template_directory_uri(); ?>/library/styles/<?php echo $get_current_scheme; ?>" type="text/css" media="all" />
<?php }
<link rel="stylesheet" href="<?php echo get_stylesheet_directory_uri(); ?>/_inc/css/child.css" type="text/css" media="all" />