function WPSC_Query($query = '') { $query = wp_parse_args($query); $query['post_type'] = 'wpsc-product'; _deprecated_function(__FUNCTION__, '3.8', 'WP_Query class'); parent::WP_Query($query); }
public function __construct($query = '') { _wpsc_deprecated_function(__FUNCTION__, '3.8', 'WP_Query()'); $query = wp_parse_args($query); $query['post_type'] = 'wpsc-product'; parent::WP_Query($query); }