Making WordPress.org


Ignore:
Timestamp:
03/26/2019 01:26:14 PM (5 years ago)
Author:
SergeyBiryukov
Message:

Plugin Directory, Author Card: Add missing placeholders for output.

Props Ipstenu.
Fixes #4314.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/admin/metabox/class-author-card.php

    r8495 r8531  
    8585                        '<a href="https://secure.helpscout.net/search/?query=mailbox:Plugins%20%s" title="%s">HS</a>',
    8686                        urlencode( esc_attr( $author->user_nicename ) ),
    87                         esc_attr__( 'Click to search HelpScout for mentions of this author', 'wporg-plugins' )
     87                        esc_attr__( 'Click to search Help Scout for mentions of this author', 'wporg-plugins' )
    8888                    ),
    8989                );
    90                 vprintf( '<span class="profile-sp-link">[ %s | %s ]</span>', $author_links );
     90                vprintf( '<span class="profile-sp-link">[ %s | %s | %s ]</span>', $author_links );
    9191                ?>
    9292
     
    9595                    <a href="//wordpress.org/support/users/<?php echo $author->user_nicename; ?>"><?php _e( 'support', 'wporg-plugins' ); ?></a>
    9696                </span>
     97
    9798                <div class="profile-email">
    9899                    &lt;<?php echo esc_attr( $author->user_email ); ?>&gt;
    99                     <span class="profile-sp-link">
    100100                    <?php
    101                     printf(
    102                         '[ <a href="https://supportpress.wordpress.org/plugins/?sender=%s&status=&todo=Search" title="%s">SP</a> ]',
    103                         esc_attr( $author->user_email ),
    104                         esc_attr__( 'Click to search Pluginrepo SupportPress for emails sent to/from this email address', 'wporg-plugins' )
    105                     );
     101                    $author_email_links = array(
     102                        sprintf(
     103                            '<a href="https://supportpress.wordpress.org/plugins/?sender=%s&status=&todo=Search" title="%s">SP</a> ]',
     104                            urlencode( $author->user_email ),
     105                            esc_attr__( 'Click to search Pluginrepo SupportPress for emails sent to/from this email address', 'wporg-plugins' )
     106                        ),
     107                        sprintf(
     108                            '<a href="https://secure.helpscout.net/search/?query=mailbox:Plugins%20%s" title="%s">HS</a>',
     109                            urlencode( $author->user_email ),
     110                            esc_attr__( 'Click to search Help Scout for emails sent to/from this email address', 'wporg-plugins' )
     111                        ),
     112                    );
     113                    vprintf( '<span class="profile-sp-link">[ %s | %s ]</span>', $author_email_links );
    106114                    ?>
    107                     &nbsp;
    108                     <?php
    109                     printf(
    110                         '<a href="https://secure.helpscout.net/search/?query=mailbox:Plugins%20%s" title="%s">HS</a>',
    111                         esc_attr( $author->user_email ),
    112                         esc_attr__( 'Click to search HelpScout for emails sent to/from this email address', 'wporg-plugins' )
    113                     );
    114                     ?>
    115                     </span>
    116115                </div>
    117116                <div class="profile-join">
     
    360359            }
    361360
    362             vprintf( '<span class="profile-sp-link">[ %s | %s | %s ]</span>', [
     361            vprintf( '<span class="profile-sp-link">[ %s | %s | %s | %s ]</span>', [
    363362                sprintf(
    364363                    '<a href="%s" title="%s">%s</a>',
     
    380379                    '<a href="https://secure.helpscout.net/search/?query=mailbox:Plugins%20%s" title="%s">HS</a>',
    381380                    rawurlencode( esc_attr( $plugin_name ) ),
    382                     esc_attr__( 'Click to search HelpScout for mentions of this plugin', 'wporg-plugins' )
     381                    esc_attr__( 'Click to search Help Scout for mentions of this plugin', 'wporg-plugins' )
    383382                ),
    384383            ] );
Note: See TracChangeset for help on using the changeset viewer.