WordPress.org

Making WordPress.org

Changeset 5330


Ignore:
Timestamp:
04/14/2017 05:24:23 PM (3 years ago)
Author:
coffee2code
Message:

Plugin Directory, Author Card: Change plugin names to link to their front-end page and add an 'Edit' link next to each.

File:
1 edited

Legend:

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

    r5318 r5330  
    187187                        esc_attr( implode( ' ', $classes ) ),
    188188                        esc_attr( implode( ' ', $tooltips ) ),
    189                         add_query_arg( array( 'post' => $plugin->ID, 'action' => 'edit' ), admin_url( 'post.php' ) ),
     189                        esc_attr( get_permalink( $plugin ) ),
    190190                        $plugin->post_name
    191191                    );
     
    196196
    197197                    $plugin_links = array(
     198                        '<a href="' . esc_url( get_edit_post_link( $plugin->ID, '' ) ) . '" title="Edit this plugin">Edit</a>',
    198199                        '<a href="//make.wordpress.org/pluginrepo/?s=' . urlencode( esc_attr( $plugin_slug ) ) . '" title="Click to search Pluginrepo P2 for mention of this plugin">P2</a>',
    199200                        '<a href="https://supportpress.wordpress.org/plugins/?q=' . urlencode( esc_attr( $plugin_slug ) ) . '&status=&todo=Search+%C2%BB" title="Click to search Pluginrepo SupportPress for mention of this plugin">SP</a>',
    200201                    );
    201                     vprintf( '<span class="profile-sp-link">[ %s | %s ]</span>', $plugin_links );
     202                    vprintf( '<span class="profile-sp-link">[ %s | %s | %s ]</span>', $plugin_links );
    202203
    203204                    if ( $extra ) {
Note: See TracChangeset for help on using the changeset viewer.