Browse Source

Blockbase: Fix social icons (#5592)

Ben Dwyer 3 years ago
parent
commit
dc1dfe53d2
1 changed files with 1 additions and 0 deletions
  1. 1 0
      blockbase/inc/social-navigation.php

+ 1 - 0
blockbase/inc/social-navigation.php

@@ -59,6 +59,7 @@ function get_social_menu_as_social_links_block( $block ) {
 	if ( $menu ) {
 		foreach ( $menu as $menu_item ) {
 			$service_name          = preg_replace( '/(-[0-9]+)/', '', $menu_item->post_name );
+			$service_name          = preg_replace( '/(-profile/', '', $service_name );
 			$social_links_content .= '<!-- wp:social-link {"url":"' . $menu_item->url . '","service":"' . $service_name . '"} /-->';
 		}
 	}