Making WordPress.org


Ignore:
Timestamp:
06/21/2024 02:16:30 AM (23 months ago)
Author:
dufresnesteven
Message:

Plugin-Directory: Update commercial/community plugin link location to match theme directory.

See: https://github.com/WordPress/wordpress.org/issues/333

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/widgets/class-categorization.php

    r13766 r13845  
    3535            $title       = __( 'Commercial plugin', 'wporg-plugins' );
    3636            $url         = get_post_meta( $post->ID, 'external_support_url', true );
    37             $link_text   = __( 'Support', 'wporg-plugins' );
     37            $link_text   = __( 'View support', 'wporg-plugins' );
    3838            $description = __( 'This plugin is free but offers additional paid commercial upgrades or support.', 'wporg-plugins' );
    3939        }
     
    4242            $title       = __( 'Community plugin', 'wporg-plugins' );
    4343            $url         = get_post_meta( $post->ID, 'external_repository_url', true );
    44             $link_text   = __( 'Contribute', 'wporg-plugins' );
     44            $link_text   = __( 'Contribute to this plugin', 'wporg-plugins' );
    4545            $description = __( 'This plugin is developed and supported by a community.', 'wporg-plugins' );
    4646        }
     
    5555            <div class="widget-head">
    5656                <h2><?php echo esc_html( apply_filters( 'widget_title', $title, $instance, $this->id_base ) ); ?></h2>
    57 
     57            </div>
     58   
     59            <p><?php echo esc_html( $description ); ?>
    5860                <?php
    5961                // Always show URL if there is one, but also output the markup if on the advanced view tab
     
    6264                // URL from being shown.)
    6365                if ( $url || ( get_query_var( 'plugin_advanced' ) && current_user_can( 'plugin_admin_edit', $post ) ) ) {
    64                     printf( '<a href="%1$s" rel="nofollow">%2$s</a>', esc_url( $url ), esc_html( $link_text ) );
     66                    printf( '<a class="external-link" href="%1$s" rel="nofollow">%2$s</a>', esc_url( $url ), esc_html( $link_text ) );
    6567                }
    6668                ?>
    67             </div>
    68    
    69             <p><?php echo esc_html( $description ); ?></p>
     69            </p>
    7070        </div>
    7171        <?php
Note: See TracChangeset for help on using the changeset viewer.