Make WordPress Core


Ignore:
Timestamp:
04/15/2021 02:41:38 PM (5 years ago)
Author:
gziolo
Message:

Editor: Update WordPress packages to use with WordPress 5.8

In the response to the discussion during the Dev Chat, I'm doing a first pass to keep WordPress packages up to date in the WordPress 5.8 release cycle.

See https://github.com/WordPress/wordpress-develop/pull/1176 for more details.

Props youknowriad, aristath, andraganescu.
See #52991.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/blocks/social-link.php

    r50458 r50761  
    1818    $open_in_new_tab = isset( $block->context['openInNewTab'] ) ? $block->context['openInNewTab'] : false;
    1919
    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    );
    2328    $class_name = isset( $attributes['className'] ) ? ' ' . $attributes['className'] : false;
    2429
Note: See TracChangeset for help on using the changeset viewer.