Making WordPress.org

Changeset 12934


Ignore:
Timestamp:
10/06/2023 06:17:22 AM (12 months ago)
Author:
tellyworth
Message:

Plugins: remove Live Preview button

Remove the button for now.

See #7251.

Location:
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins
Files:
2 edited

Legend:

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

    r12933 r12934  
    520520        // Output the self close button.
    521521        the_plugin_self_close_button();
    522 
    523         // Output the toggle preview button.
    524         the_plugin_self_toggle_preview_button();
    525522    }
    526523
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/template-parts/plugin-single.php

    r12933 r12934  
    4141            <?php if ( 'publish' === get_post_status() || current_user_can( 'plugin_admin_view', $post ) ) : ?>
    4242                <a class="plugin-download button download-button button-large" href="<?php echo esc_url( Template::download_link() ); ?>"><?php esc_html_e( 'Download', 'wporg-plugins' ); ?></a>
    43                 <?php if ( !Template::is_plugin_outdated( $post ) && !get_post_meta( $post->ID, '_no_preview', true ) ) : ?>
    44                     <a class="plugin-download button download-button button-large" href="<?php echo esc_url( Template::preview_link() ); ?>"><?php esc_html_e( 'Live Preview', 'wporg-plugins' ); ?></a>
    45                 <?php endif; ?>
    4643            <?php endif; ?>
    4744        </div>
Note: See TracChangeset for help on using the changeset viewer.