Make WordPress Core


Ignore:
Timestamp:
10/31/2024 10:13:51 PM (6 months ago)
Author:
peterwilsoncc
Message:

Editor: Update packages for 6.7 RC 3

Syncs @wordpress/* packages to the wp-6.7 npm tag.

Reviewed by andrewserong.
Merges [59330] to the 6.7 branch.

Props kevin940726, ramonopoly, andrewserong.
See #62321.

Location:
branches/6.7
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/6.7

  • branches/6.7/src/wp-includes/blocks/avatar.php

    r58187 r59332  
    4747
    4848        $author_name = get_the_author_meta( 'display_name', $author_id );
    49         // translators: %s is the Author name.
     49        // translators: %s: Author name.
    5050        $alt          = sprintf( __( '%s Avatar' ), $author_name );
    5151        $avatar_block = get_avatar(
     
    6565                $label = 'aria-label="' . esc_attr( sprintf( __( '(%s author archive, opens in a new tab)' ), $author_name ) ) . '"';
    6666            }
    67             // translators: %1$s: Author archive link. %2$s: Link target. %3$s Aria label. %4$s Avatar image.
     67            // translators: 1: Author archive link. 2: Link target. %3$s Aria label. %4$s Avatar image.
    6868            $avatar_block = sprintf( '<a href="%1$s" target="%2$s" %3$s class="wp-block-avatar__link">%4$s</a>', esc_url( get_author_posts_url( $author_id ) ), esc_attr( $attributes['linkTarget'] ), $label, $avatar_block );
    6969        }
     
    7474        return '';
    7575    }
    76     /* translators: %s is the Comment Author name */
     76    /* translators: %s: Author name. */
    7777    $alt          = sprintf( __( '%s Avatar' ), $comment->comment_author );
    7878    $avatar_block = get_avatar(
     
    8989        $label = '';
    9090        if ( '_blank' === $attributes['linkTarget'] ) {
    91             // translators: %s is the Comment Author name.
     91            // translators: %s: Comment author name.
    9292            $label = 'aria-label="' . esc_attr( sprintf( __( '(%s website link, opens in a new tab)' ), $comment->comment_author ) ) . '"';
    9393        }
    94         // translators: %1$s: Comment Author website link. %2$s: Link target. %3$s Aria label. %4$s Avatar image.
    9594        $avatar_block = sprintf( '<a href="%1$s" target="%2$s" %3$s class="wp-block-avatar__link">%4$s</a>', esc_url( $comment->comment_author_url ), esc_attr( $attributes['linkTarget'] ), $label, $avatar_block );
    9695    }
Note: See TracChangeset for help on using the changeset viewer.