Ticket #14630: Featured_product.2.diff

File Featured_product.2.diff, 932 bytes (added by jghazally, 3 years ago)
  • wpsc-admin/includes/products.php

     
    99 */ 
    1010 
    1111/** 
     12 * This function is wishful thinking, that one day WordPress will add a filter into the media gallery so we don't need to do ugly jQuery  
     13 * Hacks for Better UI integration : http://core.trac.wordpress.org/ticket/14630 
     14 * 
     15 */ 
     16/* 
     17function wpsc_swap_feature_image_link($args){ 
     18        $title_text = $args['text']; 
     19        if($args['post-type'] == 'wpsc-product'){ 
     20                $title_text = esc_html__('Use as Product Thumbnail'); 
     21        } 
     22        return $title_text; 
     23} 
     24add_filter('media_feature_image_text','wpsc_swap_feature_image_link'); 
     25*/ 
     26 
     27/** 
    1228 * wpsc_product_rows function, copies the functionality of the wordpress code for displaying posts and pages, but is for products 
    1329 *  
    1430 */