Is it good practice to use children functions.php to override parent core functions?
Example in Storefront theme :
Core function
if ( ! function_exists( 'storefront_primary_navigation_wrapper' ) ) {
/**
* The primary navigation wrapper
*/
function storefront_primary_navigation_wrapper() {
echo '<div class="storefront-primary-navigation"><div class="col-full">';
}
}
children functions.php
function storefront_primary_navigation_wrapper() {
// modified content;
}