Product names are not filtered with the_title
-
In many places throughout the frontend, product titles are filtered with
the_title
, but I would like to report that I have found a couple places where they are not. To summarize: 1) products in a grouped product, 2) the cart.First are products that are part of a grouped product. Looking at the sample link I provided, notice the titles of the four products that make up the grouped product. The apostrophes in the titles are straight, whereas they should be the proper typographical apostrophe. Less obvious is that the space in front of the question mark is a no-break space (U+00A0, ) when it should be a narrow non-break space (U+202F). For comparison, the main title does show that it has been filtered, as it shows these two traits.
This occurs not only on the grouped product page, but also in the cart. If you wish, add one of the products to the cart. In the added to the cart message, notice that the product title has been filtered. On my dev copy of the site, I have confirmed that it is
the_title
on the product name rather thanthe_content
on the entire string.The second place is in the cart (in French: panier) itself. The item titles in the cart are not filtered.
My site has quite a bit of customizations, but on my dev copy, I did test by disabling every plugin except WooCommerce to confirm that the behavior I have described above still manifests.
Although this is submitted as feedback rather than as a request for support, I can privately provide my WooCommerce status report if it is helpful for reproducing.
Thank you for all you do. WooCommerce is a vital part of our website.
The page I need help with: [log in to see the link]
- The topic ‘Product names are not filtered with the_title’ is closed to new replies.