$actions['activate'
] =
sprintf( '<a href="%s" class="activatelink" title="%s">%s</a>',
$activate_link,
/* translators: %s: Theme name. */
esc_attr( sprintf( _x( 'Activate “%s”', 'theme'
),
$title ) ),
__( 'Activate'
) );
if ( current_user_can( 'edit_theme_options'
) &&
current_user_can( 'customize'
) ) { $actions['preview'
] .=
sprintf( '<a href="%s" class="load-customize hide-if-no-customize">%s</a>',
wp_customize_url( $stylesheet ),
__( 'Live Preview'
) );
} if ( !
is_multisite() &&
current_user_can( 'delete_themes'
) ) { $actions['delete'
] =
sprintf( '<a class="submitdelete deletion" href="%s" onclick="return confirm( \'%s\' );">%s</a>',
wp_nonce_url( 'themes.php?action=delete&stylesheet=' .
urlencode( $stylesheet ), 'delete-theme_' .
$stylesheet ),
/* translators: %s: Theme name. */
esc_js( sprintf( __( "You are about to delete this theme '%s'\n 'Cancel' to stop, 'OK' to delete."
),
$title ) ),
__( 'Delete'
) );