mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-12 12:50:28 +00:00
Block Editor: Update WordPress Packages WordPress 5.4 RC 4.
The following package versions were changed: @wordpress/annotations: 1.12.1 -> 1.12.2 @wordpress/block-directory: 1.5.5 -> 1.5.6 @wordpress/block-editor: 3.7.5 -> 3.7.6 @wordpress/block-library: 2.14.5 -> 2.14.6 @wordpress/blocks: 6.12.1 -> 6.12.2 @wordpress/components: 9.2.4 -> 9.2.5 @wordpress/core-data: 2.12.1 -> 2.12.2 @wordpress/data: 4.14.1 -> 4.14.2 @wordpress/data-controls: 1.8.1 -> 1.8.2 @wordpress/edit-post: 3.13.6 -> 3.13.7 @wordpress/editor: 9.12.5 -> 9.12.6 @wordpress/format-library: 1.14.5 -> 1.14.6 @wordpress/keyboard-shortcuts: 1.1.1 -> 1.1.2 @wordpress/list-reusable-blocks: 1.13.4 -> 1.13.5 @wordpress/notices: 2.0.1 -> 2.0.2 @wordpress/nux: 3.12.4 -> 3.12.5 @wordpress/rich-text: 3.12.1 -> 3.12.2 @wordpress/server-side-render: 1.8.4 -> 1.8.5 @wordpress/viewport: 2.13.1 -> 2.13.2 Description of editor changes included in the RC available at https://github.com/WordPress/gutenberg/pull/21083. Props itsjonq, mcsf, aduth. Fixes: #49688. git-svn-id: https://develop.svn.wordpress.org/trunk@47495 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -19,6 +19,7 @@ function render_block_core_social_link( $attributes ) {
|
||||
$attributes['label'] :
|
||||
/* translators: %s: Social Link service name */
|
||||
sprintf( __( 'Link to %s' ), block_core_social_link_get_name( $service ) );
|
||||
$class_name = isset( $attributes['className'] ) ? ' ' . $attributes['className'] : false;
|
||||
|
||||
// Don't render a link if there is no URL set.
|
||||
if ( ! $url ) {
|
||||
@@ -26,7 +27,7 @@ function render_block_core_social_link( $attributes ) {
|
||||
}
|
||||
|
||||
$icon = block_core_social_link_get_icon( $service );
|
||||
return '<li class="wp-social-link wp-social-link-' . esc_attr( $service ) . '"><a href="' . esc_url( $url ) . '" aria-label="' . esc_attr( $label ) . '"> ' . $icon . '</a></li>';
|
||||
return '<li class="wp-social-link wp-social-link-' . esc_attr( $service ) . esc_attr( $class_name ) . '"><a href="' . esc_url( $url ) . '" aria-label="' . esc_attr( $label ) . '"> ' . $icon . '</a></li>';
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user