Making WordPress.org


Ignore:
Timestamp:
03/23/2019 07:09:54 PM (5 years ago)
Author:
Otto42
Message:

Plugin Directory: Adjust links to go to HelpScout. Fixes #4307. props ipstenu

File:
1 edited

Legend:

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

    r6549 r8495  
    259259            }
    260260
     261            // HelpScout requires urlencode() becuase it wants spaces as + signs.
     262            $contact_author = 'https://secure.helpscout.net/mailbox/ad3e85554c5bd064/new-ticket/?name=' . $author->display_name . '&email=' . $author->user_email . '&cc=' . $cc_emails . '&subject=' . urlencode( $subject );
    261263            ?>
    262             <form id="contact-author" class="contact-author" method="POST" action="https://supportpress.wordpress.org/plugins/thread-new.php">
    263                 <input type="hidden" name="to_email" value="<?php echo esc_attr( $author->user_email ); ?>"/>
    264                 <input type="hidden" name="to_name" value="<?php echo esc_attr( $author->display_name ); ?>"/>
    265                 <input type="hidden" name="cc" value="<?php echo esc_attr( $cc_emails ); ?>"/>
    266                 <input type="hidden" name="subject" value="<?php echo esc_attr( $subject ); ?>"/>
    267                 <button class="button button-primary" type="submit">Contact plugin author</button>
    268             </form>
     264            <a id="contact-author" class="button button-primary" href="<?php echo esc_url( $contact_author ); ?>">Contact plugin committer(s)</a>
    269265            <?php
    270266
Note: See TracChangeset for help on using the changeset viewer.