remove attachment rewrite

This commit is contained in:
Mike Jolley 2012-08-09 11:50:15 +01:00
parent cfe1d85ffb
commit 9be866b7a1
1 changed files with 1 additions and 4 deletions

View File

@ -784,10 +784,7 @@ class Woocommerce {
)
);
// Sort out attachment urls
$attachment_base = get_option('woocommerce_prepend_shop_page_to_products') == 'yes' ? trailingslashit( $base_slug ) : trailingslashit( _x( 'product', 'slug', 'woocommerce' ) );
add_rewrite_rule( '^' . $attachment_base . '([^/]*)/([^/]*)/([^/]*)/?', 'index.php?attachment=$matches[3]', 'top' );
// Sort out attachment urls (removed, breaks pagination) no alternatives add_rewrite_rule( '^' . $attachment_base . '([^/]*)/([^/]*)/([^/]*)/?', 'index.php?attachment=$matches[3]', 'top' );
register_post_type( "product_variation",
array(