[wp-meta] [Making WordPress.org] #3626: Add a report theme button

Making WordPress.org noreply at wordpress.org
Mon May 21 13:39:25 UTC 2018

#3626: Add a report theme button
 Reporter:  acosmin          |       Owner:  (none)
     Type:  enhancement      |      Status:  new
 Priority:  high             |   Milestone:
Component:  Theme Directory  |  Resolution:
 Keywords:                   |

Comment (by acosmin):

 @dd32 I tried to make the code for the report button:
 <div class="theme-report">
         <h4><?php _e( 'Report', 'wporg-themes' ); ?></h4>
         <p><?php _e( 'Does this theme have major issues?', 'wporg-themes'
 ); ?></p>
         $current_user = wp_get_current_user();
         $report_url = add_query_arg(
                         'g5141-name'     => is_user_logged_in() ?
 $current_user->ID : null,
                         'g5141-email'    => is_user_logged_in() ?
 $current_user->user_email : null,
                         'g5141-themeurl' => 'https://wordpress.org/theme/'
 . $theme->slug
         <a href="<?php echo esc_url( $report_url ); ?>" class="button
 button-secondary"><?php _e( 'Report this theme', 'wporg-themes' ); ?></a>
 </div><!-- .theme-report -->

 I think the class name `.theme-report` will also need to be added next to
 `.theme-support`, in the stylesheet. It has a `font-size` style from what
 I can see. Or we can just use the `theme-support` class name.

 Preferably, this piece of html should be added before or after `theme-
 support` div, just so it gets noticed.

Ticket URL: <https://meta.trac.wordpress.org/ticket/3626#comment:7>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org

More information about the wp-meta mailing list