Changeset 50761 for trunk/src/wp-includes/blocks/social-link.php
- Timestamp:
- 04/15/2021 02:41:38 PM (5 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/blocks/social-link.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/blocks/social-link.php
r50458 r50761 18 18 $open_in_new_tab = isset( $block->context['openInNewTab'] ) ? $block->context['openInNewTab'] : false; 19 19 20 $service = ( isset( $attributes['service'] ) ) ? $attributes['service'] : 'Icon'; 21 $url = ( isset( $attributes['url'] ) ) ? $attributes['url'] : false; 22 $label = ( isset( $attributes['label'] ) ) ? $attributes['label'] : block_core_social_link_get_name( $service ); 20 $service = ( isset( $attributes['service'] ) ) ? $attributes['service'] : 'Icon'; 21 $url = ( isset( $attributes['url'] ) ) ? $attributes['url'] : false; 22 $label = ( isset( $attributes['label'] ) ) ? $attributes['label'] : sprintf( 23 /* translators: %1$s: Social-network name. %2$s: URL. */ 24 __( '%1$s: %2$s', 'gutenberg' ), 25 block_core_social_link_get_name( $service ), 26 $url 27 ); 23 28 $class_name = isset( $attributes['className'] ) ? ' ' . $attributes['className'] : false; 24 29
Note: See TracChangeset
for help on using the changeset viewer.