Make WordPress Core

Ticket #44891: 44891.patch

File 44891.patch, 676 bytes (added by mukesh27, 6 years ago)

Try this patch.

  • theme-install.php

    diff -Naur old/theme-install.php new/theme-install.php
    old new  
    274274                                /* translators: %s: Theme name */
    275275                                $aria_label = sprintf( _x( 'Activate %s', 'theme' ), '{{ data.name }}' );
    276276                                ?>
    277                                 <# if ( data.activate_url ) { #>
     277                                <# if ( data.activate_url && ( data.id !== "<?php echo get_option('stylesheet'); ?>" ) ) { #>
    278278                                        <a class="button button-primary activate" href="{{ data.activate_url }}" aria-label="<?php echo esc_attr( $aria_label ); ?>"><?php _e( 'Activate' ); ?></a>
    279279                                <# } #>
    280280                                <# if ( data.customize_url ) { #>