Making WordPress.org


Ignore:
Timestamp:
06/13/2023 06:21:33 AM (3 years ago)
Author:
dd32
Message:

Helpscout: Link the 'plugins owned by this user' text to the wp-admin listing of plugins/themes owned by the user.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/api.wordpress.org/public_html/dotorg/helpscout/plugins-themes.php

    r12607 r12651  
    8181        $items = get_user_items( $user );
    8282        if ( $items ) {
    83             echo '<p><strong>' . ucwords( $type ) . ' owned by this user:</strong></p>';
     83            $url = add_query_arg( [ 'post_type' => $repo_post_types[ $type ], 'author' => $user->ID ], admin_url( 'edit.php' ) );
     84            echo '<p><strong><a href="' . esc_url( $url ) . '">' . ucwords( $type ) . ' owned by this user:</a></strong></p>';
    8485
    8586            display_items( $items );
Note: See TracChangeset for help on using the changeset viewer.