diff --git a/functions.php b/functions.php index 9f52a50..12f3d97 100644 --- a/functions.php +++ b/functions.php @@ -769,11 +769,9 @@ function get_site_info( $url ){ ); } -// if (!function_exists('get_network_name')){ -// function get_network_name( $network_term_slug ){ -// return get_term_by( 'slug', $network_term_slug, 'network' )->name; -// } -// } +function get_network_name( $network ){ + return $network->name; +} function bw_register_import_endpoint(/* $_REQUEST */) { register_rest_route('bw', 'import-bots', array( diff --git a/loop.php b/loop.php index 1336ab5..f457682 100644 --- a/loop.php +++ b/loop.php @@ -56,7 +56,26 @@
+ diff --git a/single.php b/single.php index 3571aee..b7f1482 100644 --- a/single.php +++ b/single.php @@ -193,10 +193,6 @@ name; - } - $network_names = []; if ( $networks ){ diff --git a/template-submit-your-bot.php b/template-submit-your-bot.php index 4c5a41d..c008ac7 100644 --- a/template-submit-your-bot.php +++ b/template-submit-your-bot.php @@ -15,10 +15,6 @@ $dominant_color_css = str_replace( '[', 'background-color:rgb( ', $dominant_color ); $dominant_color_css = str_replace( ']', ' )', $dominant_color_css ); - function get_network_name( $network_term_slug ){ - return get_term_by( 'slug', $network_term_slug, 'network' )->name; - } - if ( !empty( $_POST ) ){ // error_log( print_r( $_POST, true ) );