| 1 | Index: wpsc-admin/includes/products.php |
|---|
| 2 | =================================================================== |
|---|
| 3 | --- wpsc-admin/includes/products.php (revision 277502) |
|---|
| 4 | +++ wpsc-admin/includes/products.php (working copy) |
|---|
| 5 | @@ -9,6 +9,22 @@ |
|---|
| 6 | */ |
|---|
| 7 | |
|---|
| 8 | /** |
|---|
| 9 | + * 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 |
|---|
| 10 | + * Hacks for Better UI integration : http://core.trac.wordpress.org/ticket/14630 |
|---|
| 11 | + * |
|---|
| 12 | + */ |
|---|
| 13 | +/* |
|---|
| 14 | +function wpsc_swap_feature_image_link($args){ |
|---|
| 15 | + $title_text = $args['text']; |
|---|
| 16 | + if($args['post-type'] == 'wpsc-product'){ |
|---|
| 17 | + $title_text = esc_html__('Use as Product Thumbnail'); |
|---|
| 18 | + } |
|---|
| 19 | + return $title_text; |
|---|
| 20 | +} |
|---|
| 21 | +add_filter('media_feature_image_text','wpsc_swap_feature_image_link'); |
|---|
| 22 | +*/ |
|---|
| 23 | + |
|---|
| 24 | +/** |
|---|
| 25 | * wpsc_product_rows function, copies the functionality of the wordpress code for displaying posts and pages, but is for products |
|---|
| 26 | * |
|---|
| 27 | */ |
|---|