Making WordPress.org


Ignore:
Timestamp:
03/30/2017 03:57:21 PM (8 years ago)
Author:
obenland
Message:

Plugin Directory: Move admin link into meta widget

It's pretty meta after all.

See #2111.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/template-parts/plugin-single.php

    r5036 r5210  
    9595                </div>
    9696            <?php endif; ?>
    97             <div>
    98                 <a class="plugin-download button download-button button-large" href="<?php echo esc_url( Template::download_link() ); ?>" itemprop="downloadUrl"><?php _e( 'Download', 'wporg-plugins' ); ?></a>
    99                 <?php if ( current_user_can( 'plugin_admin_view', get_post() ) ) : ?>
    100                     <br>
    101                     <a class="plugin-edit hide-if-no-js" href="<?php echo esc_url( get_permalink() . 'admin/' ); ?>"><?php _e( 'Admin', 'wporg-plugins' ); ?></a>
    102                 <?php endif; ?>
    103             </div>
    10497
     98            <a class="plugin-download button download-button button-large" href="<?php echo esc_url( Template::download_link() ); ?>" itemprop="downloadUrl"><?php _e( 'Download', 'wporg-plugins' ); ?></a>
    10599            <meta itemprop="softwareVersion" content="<?php echo esc_attr( get_post_meta( get_the_ID(), 'version', true ) ); ?>">
    106100            <meta itemprop="fileFormat" content="application/zip">
Note: See TracChangeset for help on using the changeset viewer.