Making WordPress.org

Changeset 9089


Ignore:
Timestamp:
08/01/2019 06:05:28 PM (5 years ago)
Author:
SergeyBiryukov
Message:

Plugin Directory, Author Card: Remove SupportPress links; encode email addresses.

Props Ipstenu.
Fixes #4653.

Location:
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/admin/metabox
Files:
2 edited

Legend:

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

    r9015 r9089  
    7878                    ),
    7979                    sprintf(
    80                         '<a href="https://supportpress.wordpress.org/plugins/?q=%s&status=&todo=Search+%%C2%%BB" title="%s">SP</a>',
    81                         urlencode( esc_attr( $author->user_nicename ) ),
    82                         esc_attr__( 'Click to search Pluginrepo SupportPress for mentions of this author', 'wporg-plugins' )
    83                     ),
    84                     sprintf(
    8580                        '<a href="https://secure.helpscout.net/search/?query=mailbox:Plugins%%20%s" title="%s">HS</a>',
    8681                        urlencode( esc_attr( $author->user_nicename ) ),
     
    8883                    ),
    8984                );
    90                 vprintf( '<span class="profile-sp-link">[ %s | %s | %s ]</span>', $author_links );
     85                vprintf( '<span class="profile-sp-link">[ %s | %s ]</span>', $author_links );
    9186                ?>
    9287
     
    10196                    $author_email_links = array(
    10297                        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(
    10898                            '<a href="https://secure.helpscout.net/search/?query=mailbox:Plugins%%20%s" title="%s">HS</a>',
    10999                            urlencode( $author->user_email ),
     
    111101                        ),
    112102                    );
    113                     vprintf( '<span class="profile-sp-link">[ %s | %s ]</span>', $author_email_links );
     103                    vprintf( '<span class="profile-sp-link">[ %s ]</span>', $author_email_links );
    114104                    ?>
    115105                </div>
     
    359349            }
    360350
    361             vprintf( '<span class="profile-sp-link">[ %s | %s | %s | %s ]</span>', [
     351            vprintf( '<span class="profile-sp-link">[ %s | %s | %s ]</span>', [
    362352                sprintf(
    363353                    '<a href="%s" title="%s">%s</a>',
     
    372362                ),
    373363                sprintf(
    374                     '<a href="https://supportpress.wordpress.org/plugins/?q=%s&status=&todo=Search+%%C2%%BB" title="%s">SP</a>',
    375                     urlencode( esc_attr( $plugin_name ) ),
    376                     esc_attr__( 'Click to search Plugin SupportPress for mentions of this plugin', 'wporg-plugins' )
    377                 ),
    378                 sprintf(
    379364                    '<a href="https://secure.helpscout.net/search/?query=mailbox:Plugins%%20%s" title="%s">HS</a>',
    380365                    rawurlencode( esc_attr( $plugin_name ) ),
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/admin/metabox/class-review-tools.php

    r8543 r9089  
    294294            }
    295295
    296             // HelpScout requires urlencode() becuase it wants spaces as + signs.
    297             $contact_author = 'https://secure.helpscout.net/mailbox/ad3e85554c5bd064/new-ticket/?name=' . $author->display_name . '&email=' . $author->user_email . '&cc=' . $cc_emails . '&subject=' . urlencode( $subject );
     296            // HelpScout requires urlencode() because it wants spaces as + signs.
     297            $contact_author = 'https://secure.helpscout.net/mailbox/ad3e85554c5bd064/new-ticket/?name=' . $author->display_name . '&email=' . urlencode( $author->user_email ) . '&cc=' . urlencode( $cc_emails ) . '&subject=' . urlencode( $subject );
    298298            ?>
    299299            <a id="contact-author" class="button button-primary" href="<?php echo esc_url( $contact_author ); ?>">Contact plugin committer(s)</a>
Note: See TracChangeset for help on using the changeset viewer.