Browse Source

Add missing paren. (#5710)

Jeff Ong 3 years ago
parent
commit
aaf31da823
1 changed files with 1 additions and 1 deletions
  1. 1 1
      blockbase/inc/social-navigation.php

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

@@ -59,7 +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 );
+			$service_name          = preg_replace( '/(-profile)/', '', $service_name );
 			$social_links_content .= '<!-- wp:social-link {"url":"' . $menu_item->url . '","service":"' . $service_name . '"} /-->';
 		}
 	}