Making WordPress.org

Changeset 12117


Ignore:
Timestamp:
10/12/2022 11:31:00 PM (2 years ago)
Author:
dd32
Message:

Plugin Directory: Readme parsing: Support those who use the format of @joe-bloggs in the Contributors line.

Fixes #6539.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/readme/class-parser.php

    r11908 r12117  
    579579    protected function sanitize_contributors( $users ) {
    580580        foreach ( $users as $i => $name ) {
     581            // Trim any leading `@` off the name, in the event that someone uses `@joe-bloggs`.
     582            $name = ltrim( $name, '@' );
     583
    581584            // Contributors should be listed by their WordPress.org Login name (Example: 'Joe Bloggs')
    582585            $user = get_user_by( 'login', $name );
Note: See TracChangeset for help on using the changeset viewer.